-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
executable file
·35 lines (32 loc) · 1.03 KB
/
App.tsx
File metadata and controls
executable file
·35 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import 'react-native-gesture-handler';
import React, {useEffect} from 'react';
import {StatusBar} from 'react-native';
import {NavigationContainer} from '@react-navigation/native';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {RootNavigator} from '@/navigation';
import FlashMessage from 'react-native-flash-message';
import {AuthProvider, BluetoothContextProvider, MqttProvider, } from '@/libs/context';
import SplashScreen from 'react-native-splash-screen';
function App(): React.JSX.Element {
useEffect(() => {
SplashScreen.hide();
}, []);
return (
<SafeAreaProvider>
<>
<NavigationContainer>
<AuthProvider>
<MqttProvider>
<BluetoothContextProvider>
<StatusBar barStyle={'default'} />
<RootNavigator />
</BluetoothContextProvider>
</MqttProvider>
</AuthProvider>
</NavigationContainer>
<FlashMessage position="top" />
</>
</SafeAreaProvider>
);
}
export default App;