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

clicking on the back button it does not remain in the tab

Open AlexCernik opened this issue 4 years ago • 0 comments
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

AlexCernik avatar Apr 10 '21 23:04 AlexCernik