BlueWallet/navigation/MasterView.tsx

26 lines
631 B
TypeScript
Raw Normal View History

2024-05-18 17:36:16 +02:00
import 'react-native-gesture-handler'; // should be on top
2024-05-20 11:54:13 +02:00
import React, { lazy, Suspense } from 'react';
import MainRoot from '../navigation';
2024-05-31 19:18:01 +02:00
import { useStorage } from '../hooks/context/useStorage';
2024-08-25 16:47:44 +02:00
import DevMenu from '../components/DevMenu';
2024-05-18 17:36:16 +02:00
const CompanionDelegates = lazy(() => import('../components/CompanionDelegates'));
const MasterView = () => {
const { walletsInitialized } = useStorage();
return (
<>
<MainRoot />
{walletsInitialized && (
<Suspense>
<CompanionDelegates />
</Suspense>
)}
2024-08-25 19:37:33 +02:00
{__DEV__ && <DevMenu />}
2024-05-18 17:36:16 +02:00
</>
);
};
export default MasterView;