Skip to content

Instantly share code, notes, and snippets.

@leapar
Created March 23, 2016 07:18
Show Gist options
  • Save leapar/c074ea79d179537ceb0d to your computer and use it in GitHub Desktop.
Save leapar/c074ea79d179537ceb0d to your computer and use it in GitHub Desktop.
//ScrollableTabView套ScrollableTabView有个bug,内部ScrollableTabView第一次要搞个定时器0.2s刷一次
//https://github.com/brentvatne/react-native-scrollable-tab-view
<ScrollableTabView
tabBarBackgroundColor="#00a2ed"
tabBarUnderlineColor="#ffffff"
tabBarActiveTextColor="#00ff00"
tabBarInactiveTextColor="#ffffff"
>
<PullToRefreshViewAndroidExample tabLabel='待确认' >
</PullToRefreshViewAndroidExample>
<PullToRefreshViewAndroidExample tabLabel='取消中' >
</PullToRefreshViewAndroidExample>
<PullToRefreshViewAndroidExample tabLabel='进行中' >
</PullToRefreshViewAndroidExample>
</ScrollableTabView>
<View style = {styles.container}>
<ToolBar title='订单'> </ToolBar>
<ScrollableTabView
renderTabBar={() => <TabBar />}
onChangeTab={this.onChangeTab}
>
<PullToRefreshViewAndroidExample tabLabel={{ tabName: '待确认' }} >
</PullToRefreshViewAndroidExample>
<PullToRefreshViewAndroidExample tabLabel={{ tabName: '取消中' }} >
</PullToRefreshViewAndroidExample>
<PullToRefreshViewAndroidExample tabLabel={{ tabName: '进行中' }} >
</PullToRefreshViewAndroidExample>
</ScrollableTabView>
</View>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment