-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.ios.js
73 lines (68 loc) · 1.68 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import React, { Component } from 'react';
import { AppRegistry, View, StyleSheet } from 'react-native';
import configureStore from './src/utils/Redux/configureStore';
import { Actions, Scene, Router } from 'react-native-router-flux';
import TopTabBar from './src/components/TabBar/tabBar';
import Medium from './src/views/Medium';
import Podcast from './src/views/Podcast';
import Splash from './src/views/Splash';
import Youtube from './src/views/Youtube';
import YoutubeDetail from './src/views/YoutubeDetail';
const __DEBUG__ = true;
const store = configureStore({}, __DEBUG__);
const scenes = Actions.create(
<Scene hideNavBar key="root" >
<Scene
initial
component={Splash}
key="splash"
store={store}
title="Splash"
type="replace" />
<Scene
component={Podcast}
key="podcast"
store={store}
title="Podcast"
type="replace" />
<Scene
component={Medium}
key="medium"
store={store}
title="Medium"
type="replace" />
<Scene
component={Youtube}
key="youtube"
store={store}
title="Youtube"
type="replace" />
<Scene
component={YoutubeDetail}
key="youtubeDetail"
store={store}
title="YoutubeDetail"
type="replace" />
</Scene>
);
class Noders_iOS_ReactNative extends Component {
constructor() {
super();
}
render(){
return (
<View
style={styles.container}
>
<TopTabBar/>
<Router hideNavBar scenes={scenes}/>
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
}
});
AppRegistry.registerComponent('Noders_iOS_ReactNative', () => Noders_iOS_ReactNative);