-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
38 lines (36 loc) · 1 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
import React from 'react'
import { TabNavigator, StackNavigator } from 'react-navigation'
import HomeScreen from './src/HomeScreen'
import PhotosScreen from './src/PhotosScreen'
import TodoScreen from './src/TodoScreen'
import DetailsScreen from './src/DetailsScreen'
import PhotoItem from './src/PhotoItem';
const App = StackNavigator({
Profile: {
screen: TabNavigator({
HomeScreen: { screen: HomeScreen },
PhotosScreen: { screen: PhotosScreen },
TodoScreen: { screen: TodoScreen }
},
{
tabBarPosition: 'bottom',
swipeEnabled: true,
lazy: true, // Each screen will not mount/load until user clicks on them
animationEnabled: true,
tabBarOptions: {
showIcon: true,
iconStyle: {
width: 20,
height: 20
},
style: {
backgroundColor: '#03A9F4'
}
}
})
},
DetailsScreen: { screen: DetailsScreen },
PhotoItem: { screen: PhotoItem }
}
)
export default App