-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.common.js
More file actions
24 lines (22 loc) · 896 Bytes
/
index.common.js
File metadata and controls
24 lines (22 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { Navigation } from 'react-native-navigation';
import Main from './App/Components/Main';
import Dashboard from './App/Components/Dashboard';
import Profile from './App/Components/Profile';
import Repositories from './App/Components/Repositories';
import WebView from './App/Components/Helpers/WebView';
// register all screens of the app (including internal ones)
function registerScreens() {
Navigation.registerComponent('Main', () => Main);
Navigation.registerComponent('Dashboard', () => Dashboard);
Navigation.registerComponent('Profile', () => Profile);
Navigation.registerComponent('Repositories', () => Repositories);
Navigation.registerComponent('WebView', () => WebView);
}
registerScreens();
// start the app
export default Navigation.startSingleScreenApp({
screen: {
screen: 'Main', // this is a registered name for a screen
title: 'Main Screen'
}
});