-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
37 lines (34 loc) · 799 Bytes
/
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
import React from 'react';
import { StackNavigator } from 'react-navigation';
import { Text } from 'react-native';
import HomeScreen from './screens/HomeScreen';
import FirstContentScreen from './screens/FirstContentScreen';
import SecondScreen from './screens/SecondScreen';
import ThirdScreen from './screens/ThirdScreen';
const App = StackNavigator({
Home: {
screen: HomeScreen,
navigationOptions: {
headerTitle: 'Home'
}
},
First: {
screen: FirstContentScreen,
navigationOptions: {
headerTitle: 'First page'
}
},
Second: {
screen: SecondScreen,
navigationOptions: {
headerTitle: 'Second page'
}
},
Third: {
screen: ThirdScreen,
navigationOptions: {
headerTitle: 'Third page'
}
}
})
export default App