-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
37 lines (36 loc) · 921 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
33
34
35
36
37
import React, { Component } from 'react'
import {
ActivityIndicator,
StyleSheet,
Text,
View,
} from 'react-native'
import App from './App'
import Login from './components/login/login'
import { Router,Stack, Scene } from 'react-native-router-flux'
import { Provider } from 'mobx-react';
import store from './components/store'
export default class Main extends Component {
render() {
return (
<Provider store={store}>
<Router sceneStyle={{ backgroundColor: '#F5FCFF' }}>
<Stack key='root'>
<Scene
key='app'
component={App}
title=''
hideNavBar={true}
/>
<Scene
key='login'
component={Login}
title=''
hideNavBar={true}
/>
</Stack>
</Router>
</Provider>
)
}
}