-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
51 lines (36 loc) · 1.42 KB
/
App.js
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
import 'react-native-gesture-handler';
import { StyleSheet, StatusBar, SafeAreaView ,Platform,View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import TelaProximosDias from './src/telas/TelaProximosDias.js';
import TelaTempoHoje from './src/telas/TelaTempoHoje.js';
import DrawerContent from './src/componentes/DrawerContent';
import { createDrawerNavigator } from '@react-navigation/drawer';
const STATUSBAR_HEIGHT = Platform.OS === 'ios' ? 20 : StatusBar.currentHeight;
const Drawer = createDrawerNavigator();
function Home() {
return (
<Drawer.Navigator screenOptions={{headerShown: false}} drawerContent={DrawerContent}>
<Drawer.Screen name="Main" component={TelaTempoHoje}/>
</Drawer.Navigator>
);
}
const Stack = createNativeStackNavigator();
export default function App() {
return (
<SafeAreaView style = {styles.container} >
<StatusBar barStyle="dark-content" translucent backgroundColor={'transparent'} />
<NavigationContainer>
<Stack.Navigator screenOptions={{headerShown: false}}>
<Stack.Screen name="Home" component={Home}/>
<Stack.Screen name="Next 7 days" component={TelaProximosDias}/>
</Stack.Navigator>
</NavigationContainer>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
});