mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
23 lines
555 B
TypeScript
23 lines
555 B
TypeScript
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';
|
|
const CompanionDelegates = lazy(() => import('./components/CompanionDelegates'));
|
|
|
|
const MasterView = () => {
|
|
const { walletsInitialized } = useStorage();
|
|
|
|
return (
|
|
<>
|
|
<MainRoot />
|
|
{walletsInitialized && (
|
|
<Suspense>
|
|
<CompanionDelegates />
|
|
</Suspense>
|
|
)}
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default MasterView;
|