-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
55 lines (52 loc) · 1.47 KB
/
App.tsx
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
45
46
47
48
49
50
51
52
53
54
55
import React from 'react';
import {
Dimensions,
LogBox,
SafeAreaView,
StatusBar,
useColorScheme,
View,
} from 'react-native';
import {NavigationContainer} from '@react-navigation/native';
import {Colors} from 'react-native/Libraries/NewAppScreen';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import {CureSmart} from './src/components/CureSmart.tsx';
const Stack = createNativeStackNavigator();
function App(): React.JSX.Element {
const isDarkMode = useColorScheme() === 'dark';
const screenWidth = Dimensions.get('window').width;
LogBox.ignoreAllLogs();
return (
<NavigationContainer>
<SafeAreaView
style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: !isDarkMode ? 'black' : 'white',
}}>
<StatusBar
barStyle={!isDarkMode ? 'light-content' : 'dark-content'}
backgroundColor={isDarkMode ? Colors.darker : Colors.lighter}
/>
<View
style={{
flex: 1,
width: screenWidth,
}}>
<Stack.Navigator>
<Stack.Screen
name="Cure Smart"
component={CureSmart}
options={{
headerStyle: {backgroundColor: 'black'},
headerTintColor: 'white',
}}
/>
</Stack.Navigator>
</View>
</SafeAreaView>
</NavigationContainer>
);
}
export default App;