I am using react-native-tab-view
for display tab on the top of the screen. Screen view looks congested in case of number of screen is going to increase (more than 5)
Below is my code snippet
export default class CustomTabViewComponent extends React.Component{
state = {
index: 0,
routes: [
{ key: 'tab1', title: 'Tab1' },
{ key: 'tab2', title: 'Tab2' },
{ key: 'tab3', title: 'Tab3' },
{ key: 'tab4', title: 'Tab4' },
{ key: 'tab5', title: 'Tab5' },
],
};
render(){
return(
<TabView
navigationState={this.state}
renderScene={this.renderScene}
renderTabBar={this._renderTabBar}
onIndexChange={this.onIndexChange}
initialLayout={{
width: Dimensions.get('window').width,
height: 100,
}}
/>
)}
}
I am posting image also for reference.
Is there any property with the help of that i can make TabView
scrollable to the right with individual tab fix width ?
PS: I have try react-native-scrollable-tab-view
but stuck at the same place.