BlueWallet/navigation/MasterView.tsx

24 lines
555 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-05-18 17:36:16 +02:00
const CompanionDelegates = lazy(() => import('../components/CompanionDelegates'));
const MasterView = () => {
const { walletsInitialized } = useStorage();
return (
<>
<MainRoot />
{walletsInitialized && (
<Suspense>
<CompanionDelegates />
</Suspense>
)}
</>
);
};
export default MasterView;