react-native-scrollable-tab-view icon indicating copy to clipboard operation
react-native-scrollable-tab-view copied to clipboard

Lock one of n tabs

Open MaxFrolov opened this issue 9 years ago • 3 comments

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...

MaxFrolov avatar May 18 '17 09:05 MaxFrolov

Can it be helpful https://github.com/skv-headless/react-native-scrollable-tab-view/issues/629?

skv-headless avatar May 18 '17 12:05 skv-headless

Thanks for answering, I just solved this problem by this approach: <ScrollableTabView initialPage={1} contentProps={{bounces: false}}> <FirstTab /> <SecondTab /> {!condition && <ThirdTab />} </ScrollableTabView>

MaxFrolov avatar May 18 '17 12:05 MaxFrolov

Great :+1:

skv-headless avatar May 18 '17 12:05 skv-headless