-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
35 lines (32 loc) · 855 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
import React from 'react';
import { Provider } from 'react-redux';
import { TabNavigator, StackNavigator } from 'react-navigation';
import store from './store';
import MainScreen from './screens/MainScreen';
import SettingsScreen from './screens/SettingsScreen';
import CameraScreen from './screens/CameraScreen';
export default class App extends React.Component {
render() {
const MainNavigator = TabNavigator({
Main: { screen: MainScreen },
Settings: {
screen: StackNavigator({
Settings: { screen: SettingsScreen },
Camera: { screen: CameraScreen }
})
}
}, {
tabBarPosition: 'bottom',
tabBarOptions: {
labelStyle: {
fontSize: 12
}
}
});
return (
<Provider store={store}>
<MainNavigator />
</Provider>
);
}
}