@@ -11,43 +11,41 @@ import ScrollableTabView from 'react-native-scrollable-tab-view';
1111
1212export default React . createClass ( {
1313 render ( ) {
14- return < View style = { styles . container } >
15- < ScrollableTabView initialPage = { 1 } renderTabBar = { ( ) => < FacebookTabBar /> } >
16- < ScrollView tabLabel = "ios-paper" style = { styles . tabView } >
17- < View style = { styles . card } >
18- < Text > News</ Text >
19- </ View >
20- </ ScrollView >
21- < ScrollView tabLabel = "ios-people" style = { styles . tabView } >
22- < View style = { styles . card } >
23- < Text > Friends</ Text >
24- </ View >
25- </ ScrollView >
26- < ScrollView tabLabel = "ios-chatboxes" style = { styles . tabView } >
27- < View style = { styles . card } >
28- < Text > Messenger</ Text >
29- </ View >
30- </ ScrollView >
31- < ScrollView tabLabel = "ios-notifications" style = { styles . tabView } >
32- < View style = { styles . card } >
33- < Text > Notifications</ Text >
34- </ View >
35- </ ScrollView >
36- < ScrollView tabLabel = "ios-list" style = { styles . tabView } >
37- < View style = { styles . card } >
38- < Text > Other nav</ Text >
39- </ View >
40- </ ScrollView >
41- </ ScrollableTabView >
42- </ View > ;
14+ return < ScrollableTabView
15+ style = { { marginTop : 20 , } }
16+ initialPage = { 1 }
17+ renderTabBar = { ( ) => < FacebookTabBar /> }
18+ >
19+ < ScrollView tabLabel = "ios-paper" style = { styles . tabView } >
20+ < View style = { styles . card } >
21+ < Text > News</ Text >
22+ </ View >
23+ </ ScrollView >
24+ < ScrollView tabLabel = "ios-people" style = { styles . tabView } >
25+ < View style = { styles . card } >
26+ < Text > Friends</ Text >
27+ </ View >
28+ </ ScrollView >
29+ < ScrollView tabLabel = "ios-chatboxes" style = { styles . tabView } >
30+ < View style = { styles . card } >
31+ < Text > Messenger</ Text >
32+ </ View >
33+ </ ScrollView >
34+ < ScrollView tabLabel = "ios-notifications" style = { styles . tabView } >
35+ < View style = { styles . card } >
36+ < Text > Notifications</ Text >
37+ </ View >
38+ </ ScrollView >
39+ < ScrollView tabLabel = "ios-list" style = { styles . tabView } >
40+ < View style = { styles . card } >
41+ < Text > Other nav</ Text >
42+ </ View >
43+ </ ScrollView >
44+ </ ScrollableTabView >
4345 } ,
4446} ) ;
4547
4648const styles = StyleSheet . create ( {
47- container : {
48- flex : 1 ,
49- marginTop : 30 ,
50- } ,
5149 tabView : {
5250 flex : 1 ,
5351 padding : 10 ,
0 commit comments