-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
32 lines (29 loc) · 779 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
import React from 'react';
import {Provider} from 'react-redux';
import {
TabNavigator,
} from 'react-navigation';
import store from './src/store';
import WelcomeScreen from './src/screens/WelcomeScreen';
import MainScreen from './src/screens/MainScreen';
console.ignoredYellowBox = ['Warning: BackAndroid is deprecated'];
export default class App extends React.Component {
render() {
return (
<Provider store={store}>
<RootScreen/>
</Provider>
);
}
}
const RootScreen = TabNavigator({
welcome: {screen: WelcomeScreen},
main: {screen: MainScreen},
},
{
lazy: true,
navigationOptions: {
tabBarVisible: false,
},
swipeEnabled: false,
});