Open jurisjansons opened 2 years ago
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
react-native-pager-view
(found: 5.4.24
, latest: 6.0.0
)react-native
(found: 0.69.5
, latest: 0.70.1
)expo
(found: 46.0.0
, latest: 46.0.14
)Can you verify that the issue still exists after upgrading to the latest versions of these packages?
Yeah, this is a bug. PRs welcome to fix it!
Current behavior
index parameter in navigationState is ignored. You can swipe and change tab even when index is set to constant value.
Expected behavior
TabView is showing tab with given index
as from documentation:
so, preventing index chande sould result in preventing tab switch
Reproduction
https://snack.expo.dev/CV5lqoORhN
Platform
Environment