REF: Move files

This commit is contained in:
Marcos Rodriguez Velez 2024-05-18 11:36:16 -04:00
parent 596a9cd33d
commit bc64e60020
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7
4 changed files with 32 additions and 8 deletions

View File

@ -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();

View File

@ -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
View 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;