44  TouchableHighlight , 
55}  from  'react-native' ; 
66import  TimerMixin  from  'react-timer-mixin' ; 
7- import  ScrollableTabView ,  {  DefaultTabBar ,  }  from  'react-native-scrollable-tab-view' ; 
7+ import  ScrollableTabView ,  {  ScrollableTabBar ,  }  from  'react-native-scrollable-tab-view' ; 
88
99const  Child  =  React . createClass ( { 
1010  onEnter ( )  { 
@@ -27,13 +27,13 @@ export default React.createClass({
2727
2828  getInitialState ( )  { 
2929    return  { 
30-       tabs : [ ] , 
30+       tabs : [ 1 ,   2 ] , 
3131    } ; 
3232  } , 
3333
3434  componentDidMount ( )  { 
3535    this . setTimeout ( 
36-       ( )  =>  {  this . setState ( {  tabs : [ 1 ,  2 ,  3 ,  ] ,  } ) ;  } , 
36+       ( )  =>  {  this . setState ( {  tabs : [ 1 ,  2 ,  3 ,  4 ,   5 ,   6 ,   ] ,  } ) ;  } , 
3737      100 
3838    ) ; 
3939  } , 
@@ -48,7 +48,7 @@ export default React.createClass({
4848      key = { `${ name }  _${ page }  ` } 
4949      onPress = { ( )  =>  onPressHandler ( page ) } 
5050      onLayout = { onLayoutHandler } 
51-       style = { { flex : 1 ,  } } 
51+       style = { { flex : 1 ,  width :  100 ,   } } 
5252      underlayColor = "#aaaaaa" 
5353    > 
5454      < Text > { name } </ Text > 
@@ -58,7 +58,7 @@ export default React.createClass({
5858  render ( )  { 
5959    return  < ScrollableTabView 
6060      style = { { marginTop : 20 ,  } } 
61-       renderTabBar = { ( )  =>  < DefaultTabBar  renderTab = { this . renderTab } /> } 
61+       renderTabBar = { ( )  =>  < ScrollableTabBar  renderTab = { this . renderTab } /> } 
6262      onChangeTab = { this . handleChangeTab } 
6363    > 
6464      { this . state . tabs . map ( ( tab ,  i )  =>  { 
0 commit comments