-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
23 lines (18 loc) · 644 Bytes
/
App.js
File metadata and controls
23 lines (18 loc) · 644 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import React from 'react';
import { SafeAreaView, StatusBar, useColorScheme } from 'react-native';
import { Colors } from 'react-native/Libraries/NewAppScreen';
import BottomNav from './src/components/BottomNavigation';
const App = () => {
const isDarkMode = useColorScheme() === 'dark';
const backgroundStyle = {
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
};
return (
<SafeAreaView
style={[backgroundStyle, { backgroundColor: '#178be7', flex: 1 }]}>
<StatusBar barStyle={ isDarkMode ? 'light-content' : 'dark-content' } />
<BottomNav />
</SafeAreaView>
);
};
export default App;