ptomasroos / react-native-scrollable-tab-view

Tabbed navigation that you can swipe between, each tab can have its own ScrollView and maintain its own scroll position between swipes. Pleasantly animated. Customizable tab bar
https://www.npmjs.com/package/react-native-scrollable-tab-view
6.93k stars 2.28k forks source link

When `initialPage` changed, highlighted TabBar not changed. #1143

Open Arnoldnuo opened 3 years ago

Arnoldnuo commented 3 years ago

Description

When initialPage changed, highlighted TabBar not changed.

Steps to Reproduce

  1. set initialPage to 0,
  2. use setState change initialPage to 1

Expected Behavior

  1. the second TabBar should be highlighted.

Actual Behavior

  1. scrollableTabView display the second page, but the first tabbar is still highlighted.

image

cristianolopessantos commented 2 years ago

Same problem here.

tochi commented 2 years ago

Same problem here. This problem does not occur in iOS. It is occurring only on Android.