I have written in
_renderHeader = (props) => {
return
indicatorStyle={styles.indicator}
style={styles.tabbar}
scrollEnabled={false}/>;
};
and i am calling _renderHeader like this:
...
...
renderHeader={this._renderHeader}
...
/>
I'm not sure what you mean scrollEnabled={false} is the default, so you don't need to specify that. Please reopen with a repro gif/video if you have.
By default it scroll so i wrote the statement scrollEnabled={false} inside
I'm not sure I understand. What scrolls by default? I'm 100% sure the TabBar does not.
By default the tab scrolls by swiping the views between them. I need to disable the swiping of the tabs to change the child view of the tab
You are looking for swipeEnabled={false} https://github.com/react-native-community/react-native-tab-view/blob/master/example/src/NoAnimationExample.js#L160
Thanks Satya. The library is very helpful.
@satya164 You saved my time thanks
Most helpful comment
You are looking for
swipeEnabled={false}https://github.com/react-native-community/react-native-tab-view/blob/master/example/src/NoAnimationExample.js#L160