2024-05-14 23:03:47 +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-14 23:03:47 +02:00
|
|
|
const CompanionDelegates = lazy(() => import('./components/CompanionDelegates'));
|
|
|
|
|
|
|
|
const MasterView = () => {
|
|
|
|
const { walletsInitialized } = useStorage();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<MainRoot />
|
|
|
|
{walletsInitialized && (
|
|
|
|
<Suspense>
|
|
|
|
<CompanionDelegates />
|
|
|
|
</Suspense>
|
|
|
|
)}
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default MasterView;
|