BlueWallet/navigation/MasterView.tsx
Marcos Rodriguez Velez d3172f57aa Update MasterView.tsx
2024-08-25 13:37:33 -04:00

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;