React-native-tab-view: scrollEnabled={false} does not work in <TabBar>

Created on 9 May 2017  路  7Comments  路  Source: satya164/react-native-tab-view

I have written in

_renderHeader = (props) => {
return renderIcon={this._renderIcon}
indicatorStyle={styles.indicator}
style={styles.tabbar}
scrollEnabled={false}/>;
};

and i am calling _renderHeader like this:
...
...
...
renderHeader={this._renderHeader}
...
/>

Most helpful comment

All 7 comments

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

Thanks Satya. The library is very helpful.

@satya164 You saved my time thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ashusdn picture ashusdn  路  4Comments

f6m6 picture f6m6  路  3Comments

ahmedrowaihi picture ahmedrowaihi  路  3Comments

nastarfan picture nastarfan  路  3Comments

glennvgastel picture glennvgastel  路  3Comments