/
index.js
38 lines (31 loc) · 841 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
33
34
35
36
37
38
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
Platform,
StyleSheet,
Text,
View
} from 'react-native';
import { StackNavigator } from 'react-navigation';
import { styles } from './config/styles.js';
import { HomeScreen } from './screens/HomeScreen.js';
import { ForwardScreen } from './screens/ForwardScreen.js';
import { NightModeScreen } from './screens/NightModeScreen.js';
const NativePlusWebApp = StackNavigator({
Home: { screen: HomeScreen },
Forward: { screen: ForwardScreen },
NightMode: { screen: NightModeScreen }
});
export default class App extends Component {
render() {
return(
<NativePlusWebApp />
);
}
}
AppRegistry.registerComponent('NativePlusWebApp', () => NativePlusWebApp);