Tell us which versions you are using:
OS Android. In the construction of the router I have the following configuration:
<Tabs
key="tabs"
swipeEnabled
showLabel={true}
tabBarPosition={'bottom'} >
<Stack key="home" title={'people'} name_icon={''people'} icon={TabIcon} initial >
<Scene key="_home" component={People} renderTitle={() => this.search()} />
</Stack>
...other scenes
</Tabs>
Inside the tab view I have a ScrollableTabView and in the app I can not see anything, just the scroll bar of the ScrollableTabView but not the content.
<ScrollableTabView ref="ref_people' renderTabBar={() => <Submenu />} >
<View tabLabel={'discover'} style={basicStyles.background}>
<Discover/>
</View>
<View tabLabel={'suggestions'} style={basicStyles.background}>
<Suggestions/>
</View>
<View tabLabel={'myFriends'} style={basicStyles.background}>
<MyConnections/>
</View>
</ScrollableTabView>
any way to solve this?
if I put lazy = {true} I can see the contents of the view correctly.
Which ScrollableTabView are you using? you own or a third party?
Scrollable-Tab-View not working if we add it inside Tabs.
I faced this issue only on Android
Add delay to show ScrollableTabView
componentDidMount() {
setTimeout(() => {
this.setState({
isLoaded: true
});
}, 100);
}
Most helpful comment
Scrollable-Tab-View not working if we add it inside
Tabs.Solution
Add delay to show
ScrollableTabView