satya164 / react-native-tab-view

A cross-platform Tab View component for React Native
MIT License
5.14k stars 1.07k forks source link

Custom TabBar event doesn't work sometimes #1165

Open iKoru opened 3 years ago

iKoru commented 3 years ago

Current behaviour

clicking event on button in custom tab bar doesn't switch tab view sometimes

Expected behaviour

clicking event always switches tab view

Code sample

even in snack example on this repository, "Custom tab bar". https://snack.expo.io/@satya164/react-native-tab-view-custom-tabbar see below video.

Screenshots (if applicable)

https://user-images.githubusercontent.com/7664952/113482150-423be380-94d8-11eb-8499-53871d7a1b98.mov

What have you tried

I just bumped library version up to 3.0.0 recently. This didn't happen on previous version2.x.x. So I think this is a bug on this library.

Your Environment

software version
ios or android iOS (not tested on android), web on above video
expo 40.0.0 (bare workflow, but thought to be unnecessary)
react-native 0.63.4
react-native-tab-view 3.0.0
react-native-pager-view 5.1.2
node 12.19.0
npm or yarn yarn 2.3.3
github-actions[bot] commented 3 years ago

The versions mentioned in the issue for the following packages differ from the latest versions on npm:

Can you verify that the issue still exists after upgrading to the latest versions of these packages?

Wilson-Lim commented 3 years ago

I Am having the same issue, but only on IOS. Android no problem

I am using V3.0.1