react-native-scrollable-tab-view
react-native-scrollable-tab-view copied to clipboard
clicking on the back button it does not remain in the tab
trafficstars
Hello, I have a problem, I am using react navigation stack, when selecting the detail of an article and clicking on the back button it does not remain in the tab but returns to the first one. Thank you
Steps to Reproduce
AppStack
const AppScn = () => (
<TabBar navigation={navigation} />
);
<Stack.Screen name='MyRuby' component={AppScn}
options={{
headerTitle: <Header navigation={navigation} title='Noticias' />
}}
/>
TabBar
<ScrollableTabView
scrollWithoutAnimation={true}
tabBarActiveTextColor={'white'}
tabBarInactiveTextColor={'grey'}
tabBarUnderlineStyle={{ borderWidth: 0, backgroundColor: '#ce3d3a' }}
renderTabBar={() => (<ScrollableTabBar />)}
>
{
list.map((item) => (
<View key={item.id} tabLabel={item.name}>
<AppScreen navigation={navigation} id={item.id} />
</View>
))
}
</ScrollableTabView>
Thanks