Support iOS/Android/web
$ npm install react-native-rxsegment --save
演示 web / show webhttps://rxreactnative.github.io/react-native-rxsegment/
//default<RXSegmenttabBarStyle={{backgroundColor: 'blue',paddingTop: 20}}tabBarLabels={['ios','android','web']}><Viewstyle={styles.container}/></RXSegment>//diy<RXSegmentstyle={styles.segmentHeader}renderTabBar={()=><RXSegmentTabBarstyle={{backgroundColor: '#7D26CD',paddingTop: 20}}tabBarLabels={['ios','android','web','']}activeTextColor={'red'}underlineStyle={{width: 50,height: 3,backgroundColor: 'red'}}/>}><Viewstyle={styles.container}/><Viewstyle={styles.container}/>
</RXSegment>