-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
32 lines (28 loc) · 837 Bytes
/
main.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 Expo from 'expo';
import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { TabNavigator} from 'react-navigation';
import { Provider } from 'react-redux';
//import store
import store from './store'
import IntroScreen from './screens/IntroScreen'
import LoginScreen from './screens/LoginScreen'
import MainScreen from './screens/MainScreen'
export default class App extends React.Component {
static navigationOptions = {
title: 'Chat with Lucy',
};
render () {
const MainNavigator = new TabNavigator ({
intro: { screen: IntroScreen },
login: { screen: LoginScreen },
main: { screen: MainScreen },
})
return (
<Provider store ={store}>
<MainNavigator/>
</Provider>
);
}
}
Expo.registerRootComponent(App);