-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.js
32 lines (28 loc) · 843 Bytes
/
index.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
/** @format */
import {AppRegistry} from 'react-native';
// import App from './App';
import MainPage from './app/src/screens/main/MainPage';
import {name as appName} from './app.json';
import {
createStackNavigator
} from 'react-navigation';
import SelectCityPage from "./app/src/screens/city/SelectCityPage";
import CityManagerPage from "./app/src/screens/city/CityManagerPage";
import Utils from "./app/src/utils/Utils";
const App = createStackNavigator({
Main: {
screen: MainPage
},
SelectCity: {
screen: SelectCityPage
},
CityManager: {
screen: CityManagerPage
}
}, {
headerTintColor: 'white',
headerPressColorAndroid: 'rgba(255, 255, 255, 0.4)',
headerMode: Utils.isAndroid() ? 'screen' : 'float',
mode: 'card'
});
AppRegistry.registerComponent(appName, () => App);