-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
44 lines (38 loc) · 1.18 KB
/
App.tsx
File metadata and controls
44 lines (38 loc) · 1.18 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
36
37
38
39
40
41
42
43
44
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import React from 'react';
import {GluestackUIProvider} from '@/components/ui/gluestack-ui-provider';
import {StatusBar} from 'react-native';
import './global.css';
import {useColorScheme} from 'nativewind';
import {NavigationContainer} from '@react-navigation/native';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {GestureHandlerRootView} from 'react-native-gesture-handler';
import BootSplash from 'react-native-bootsplash';
import Stacks from '@/components/navigation/Stacks';
function App(): React.JSX.Element {
const {colorScheme} = useColorScheme();
return (
<NavigationContainer
onReady={() => {
BootSplash.hide({fade: true});
}}>
<GluestackUIProvider mode={colorScheme}>
<SafeAreaProvider>
<StatusBar
barStyle={'light-content'}
// backgroundColor={"orange"}
/>
<GestureHandlerRootView style={{flex: 1}}>
<Stacks />
</GestureHandlerRootView>
</SafeAreaProvider>
</GluestackUIProvider>
</NavigationContainer>
);
}
export default App;