mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
41 lines
1.0 KiB
TypeScript
41 lines
1.0 KiB
TypeScript
import React, { useEffect } from 'react';
|
|
import 'react-native-get-random-values';
|
|
import Orientation from 'react-native-orientation-locker';
|
|
|
|
import { Buffer } from 'buffer';
|
|
import { YStack } from 'tamagui';
|
|
|
|
import AppNavigation from './src/Navigation';
|
|
import { AppProvider } from './src/stores/appProvider';
|
|
import { AuthProvider } from './src/stores/authProvider';
|
|
import { PassportProvider } from './src/stores/passportDataProvider';
|
|
import { ProofProvider } from './src/stores/proofProvider';
|
|
|
|
global.Buffer = Buffer;
|
|
|
|
function App(): React.JSX.Element {
|
|
useEffect(() => {
|
|
Orientation.lockToPortrait();
|
|
// cleanup
|
|
return () => {
|
|
Orientation.unlockAllOrientations();
|
|
};
|
|
}, []);
|
|
|
|
return (
|
|
<YStack f={1} h="100%" w="100%">
|
|
<AuthProvider>
|
|
<PassportProvider>
|
|
<AppProvider>
|
|
<ProofProvider>
|
|
<AppNavigation />
|
|
</ProofProvider>
|
|
</AppProvider>
|
|
</PassportProvider>
|
|
</AuthProvider>
|
|
</YStack>
|
|
);
|
|
}
|
|
|
|
export default App;
|