-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.android.js
35 lines (31 loc) · 1 KB
/
index.android.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, { Component } from 'react'
import { AppRegistry } from 'react-native'
import { StackNavigator,NavigationActions } from 'react-navigation';
import Check from './check'
import Login from './login'
import Register from './register'
import Home from './main'
import Docs from './docs'
import PDF from './doc_view'
import UploadDoc from './upload'
import ShareDoc from './share'
const App = StackNavigator({
checkPage: {screen: Check},
loginPage: {screen: Login},
registerPage: {screen: Register},
homePage: {screen: Home},
docsPage: {screen: Docs},
sharePage: {screen: ShareDoc},
viewPage: {screen: PDF, navigationOptions: ({navigation}) => ({
title: `${navigation.state.params.name}`,
})},
uploadPage: {screen: UploadDoc},
},
{
initialRouteName: 'checkPage',
});
const defaultGetStateForAction = App.router.getStateForAction;
App.router.getStateForAction = (action, state) => {
return defaultGetStateForAction(action, state);
};
AppRegistry.registerComponent('App', () => App);