BlueWallet/navigation/LazyLoadScanQRCodeStack.tsx

11 lines
308 B
TypeScript
Raw Normal View History

2024-05-10 19:56:08 -04:00
import React, { lazy, Suspense } from 'react';
import { LazyLoadingIndicator } from './LazyLoadingIndicator';
const ScanQRCode = lazy(() => import('../screen/send/ScanQRCode'));
export const ScanQRCodeComponent = () => (
<Suspense fallback={<LazyLoadingIndicator />}>
<ScanQRCode />
</Suspense>
);