-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp1.js
32 lines (27 loc) · 1020 Bytes
/
App1.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
import { StatusBar } from 'expo-status-bar';
import { Text, View, Button, TextInput } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import React from 'react';
import FirstPage from './pages/FirstPage';
import SecondPage from './pages/SecondPage';
import ThirdPage from './pages/ThirdPage';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator
initialRouteName='Home'
screenOptions={{
headerStyle: { backgroundColor: '#FF33DE' },
headerTintColor: '#ffff',
headerTitleStyle: { fontWeight: 'bold' }
}}
>
<Stack.Screen name='First Page' component={FirstPage} />
<Stack.Screen name='Second Page' component={SecondPage} />
<Stack.Screen name='Third Page' component={ThirdPage} />
</Stack.Navigator>
</NavigationContainer>
);
}