react-native-scrollable-tab-view
react-native-scrollable-tab-view copied to clipboard
Lock one of n tabs
Hi, can someone help me understand - how to lock one tab by condition if I have for example three tabs? Other tabs must be unlocked...
Can it be helpful https://github.com/skv-headless/react-native-scrollable-tab-view/issues/629?
Thanks for answering, I just solved this problem by this approach:
<ScrollableTabView
initialPage={1}
contentProps={{bounces: false}}>
<FirstTab />
<SecondTab />
{!condition && <ThirdTab />}
</ScrollableTabView>
Great :+1: