-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ios.js
38 lines (32 loc) · 917 Bytes
/
index.ios.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
import Welcome from './App/Components/Welcome';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Navigator
} from 'react-native';
export default class cultarte extends Component {
render() {
const sceneConfiguration = () => {return Navigator.SceneConfigs.HorizontalSwipeJump};
const sceneRender = (route, navigator) => {
if (route.component)
return <route.component navigator={navigator} {...route.passProps} />;
}
return (
<Navigator
initialRoute={{ name: 'Welcome', component: Welcome }}
configureScene={sceneConfiguration}
renderScene={sceneRender}
/>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
}
});
AppRegistry.registerComponent('cultarte', () => cultarte);