-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
45 lines (37 loc) · 1.13 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
import React from 'react';
import { Text, View, StyleSheet } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import HomeScreen from './Screens/HomeScreen';
import LinkScreen from './Screens/LinkScreen';
import ProblemScreen from './Screens/ProblemScreen'
const Stack = createStackNavigator();
function App() {
return (
<NavigationContainer>
<View style= {styles.textContainer}>
<Text style={styles.text}>App Definer</Text>
</View>
<Stack.Navigator initialRouteName="Home" screenOptions={{
headerShown: false
}}>
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="Problems" component={ProblemScreen} />
<Stack.Screen name="Links" component={LinkScreen}/>
</Stack.Navigator>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
textContainer:{
backgroundColor: 'pink',
},
text:{
color: 'white',
padding: 20,
fontSize: 22,
fontWeight: 'bold',
textAlign: 'center',
}
});
export default App;