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