mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
26 lines
631 B
TypeScript
26 lines
631 B
TypeScript
import 'react-native-gesture-handler'; // should be on top
|
|
|
|
import React, { lazy, Suspense } from 'react';
|
|
import MainRoot from '../navigation';
|
|
import { useStorage } from '../hooks/context/useStorage';
|
|
import DevMenu from '../components/DevMenu';
|
|
const CompanionDelegates = lazy(() => import('../components/CompanionDelegates'));
|
|
|
|
const MasterView = () => {
|
|
const { walletsInitialized } = useStorage();
|
|
|
|
return (
|
|
<>
|
|
<MainRoot />
|
|
{walletsInitialized && (
|
|
<Suspense>
|
|
<CompanionDelegates />
|
|
</Suspense>
|
|
)}
|
|
{__DEV__ && <DevMenu />}
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default MasterView;
|