mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
REF: Move files
This commit is contained in:
parent
596a9cd33d
commit
bc64e60020
2
App.tsx
2
App.tsx
@ -7,9 +7,9 @@ import { navigationRef } from './NavigationService';
|
||||
import { BlueDefaultTheme, BlueDarkTheme } from './components/themes';
|
||||
import { NavigationProvider } from './components/NavigationProvider';
|
||||
import { BlueStorageProvider } from './blue_modules/storage-context';
|
||||
import MasterView from './MasterView';
|
||||
import { SettingsProvider } from './components/Context/SettingsContext';
|
||||
import { LargeScreenProvider } from './components/Context/LargeScreenProvider';
|
||||
import MasterView from './navigation/MasterView';
|
||||
|
||||
const App = () => {
|
||||
const colorScheme = useColorScheme();
|
||||
|
@ -7,13 +7,13 @@ import {
|
||||
transferCurrentComplicationUserInfo,
|
||||
transferUserInfo,
|
||||
} from 'react-native-watch-connectivity';
|
||||
import { Chain } from './models/bitcoinUnits';
|
||||
import loc, { formatBalance, transactionTimeToReadable } from './loc';
|
||||
import { BlueStorageContext } from './blue_modules/storage-context';
|
||||
import Notifications from './blue_modules/notifications';
|
||||
import { FiatUnit } from './models/fiatUnit';
|
||||
import { MultisigHDWallet } from './class';
|
||||
import { useSettings } from './components/Context/SettingsContext';
|
||||
import { Chain } from '../models/bitcoinUnits';
|
||||
import loc, { formatBalance, transactionTimeToReadable } from '../loc';
|
||||
import { BlueStorageContext } from '../blue_modules/storage-context';
|
||||
import Notifications from '../blue_modules/notifications';
|
||||
import { FiatUnit } from '../models/fiatUnit';
|
||||
import { MultisigHDWallet } from '../class';
|
||||
import { useSettings } from './Context/SettingsContext';
|
||||
|
||||
function WatchConnectivity() {
|
||||
const { walletsInitialized, wallets, fetchWalletTransactions, saveToDisk, txMetadata } = useContext(BlueStorageContext);
|
24
navigation/MasterView.tsx
Normal file
24
navigation/MasterView.tsx
Normal file
@ -0,0 +1,24 @@
|
||||
import 'react-native-gesture-handler'; // should be on top
|
||||
import React, { Suspense, lazy } from 'react';
|
||||
import MainRoot from '../navigation';
|
||||
import { useStorage } from '../blue_modules/storage-context';
|
||||
import Biometric from '../class/biometrics';
|
||||
const CompanionDelegates = lazy(() => import('../components/CompanionDelegates'));
|
||||
|
||||
const MasterView = () => {
|
||||
const { walletsInitialized } = useStorage();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Biometric />
|
||||
<MainRoot />
|
||||
{walletsInitialized && (
|
||||
<Suspense>
|
||||
<CompanionDelegates />
|
||||
</Suspense>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default MasterView;
|
Loading…
Reference in New Issue
Block a user