File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed
examples/FacebookTabsExample Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 66 Text,
77 View,
88 TouchableOpacity,
9+ Dimensions,
910} = React ;
1011
11- var Icon = require ( 'FAKIconImage ' ) ;
12- var deviceWidth = require ( ' Dimensions' ) . get ( 'window' ) . width ;
12+ var { Icon, } = require ( 'react-native-icons ' ) ;
13+ var deviceWidth = Dimensions . get ( 'window' ) . width ;
1314
1415var styles = StyleSheet . create ( {
1516 tab : {
@@ -20,7 +21,7 @@ var styles = StyleSheet.create({
2021 } ,
2122
2223 tabs : {
23- height : 40 ,
24+ height : 45 ,
2425 flexDirection : 'row' ,
2526 paddingTop : 5 ,
2627 borderWidth : 1 ,
Original file line number Diff line number Diff line change 1- /**
2- * Sample React Native App
3- * https://github.com/facebook/react-native
4- */
51'use strict' ;
62
73var React = require ( 'react-native' ) ;
117 Text,
128 View,
139 ScrollView,
10+ Dimensions,
1411} = React ;
1512
1613var ScrollableTabView = require ( 'react-native-scrollable-tab-view' ) ;
1714var FacebookTabBar = require ( './FacebookTabBar' ) ;
18- var deviceWidth = require ( ' Dimensions' ) . get ( 'window' ) . width ;
15+ var deviceWidth = Dimensions . get ( 'window' ) . width ;
1916
2017var FacebookTabsExample = React . createClass ( {
2118 render ( ) {
Original file line number Diff line number Diff line change 66 "start" : " node_modules/react-native/packager/packager.sh"
77 },
88 "dependencies" : {
9- "react-native" : " ^0.5 .0" ,
10- "react-native-icons" : " 0.0.9 " ,
11- "react-native-scrollable-tab-view" : " ^0.1.4 "
9+ "react-native" : " 0.8 .0" ,
10+ "react-native-icons" : " ^0.2.0 " ,
11+ "react-native-scrollable-tab-view" : " ^0.1.10 "
1212 }
1313}
You can’t perform that action at this time.
0 commit comments