-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.android.js
More file actions
38 lines (33 loc) · 855 Bytes
/
index.android.js
File metadata and controls
38 lines (33 loc) · 855 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import React, { Component } from 'react';
var Main = require('./App/Components/Main');
import {
AppRegistry,
StyleSheet,
Navigator
} from 'react-native';
var styles = StyleSheet.create({
container:{
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#FFFFFF',
},
})
class ENVenture extends Component {
render() {
return (
<Navigator
initialRoute={{name: 'Main', component: Main}}
configureScene={() => {
return Navigator.SceneConfigs.FloatFromRight;
}}
renderScene={(route, navigator) => {
if (route.component) {
return React.createElement(route.component, { navigator });
}
}}
/>
);
}
}
AppRegistry.registerComponent('ENVenture', () => ENVenture);