Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initialRouteName don't work with react-native-tab-view v3 on Android with Hermes #9435

Closed
Bardiamist opened this issue Mar 18, 2021 · 4 comments

Comments

@Bardiamist
Copy link

Bardiamist commented Mar 18, 2021

Current Behavior

initialRouteName don't work. Or scrolling to first route. Problem only on Android with Hermes (no problem on iOS with Hermes).

Expected Behavior

Tabs should open specified initialRouteName on init.

How to reproduce

https://github.com/Bardiamist/initialRouteRame

Your Environment

software version
iOS or Android Android (Checked on Android 11 simulator)
@react-navigation/native 5.9.3
@react-navigation/material-top-tabs 5.3.14
react-native-tab-view 3.0.0
react-native 0.64.0
expo -
node 15.12.0
npm or yarn yarn 1.22.10
@github-actions
Copy link

Hey! Thanks for opening the issue. Can you provide a minimal repro which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible.

The easiest way to provide a repro is on snack.expo.io. If it's not possible to repro it on snack.expo.io, then please provide the repro in a GitHub repository.

@Bardiamist Bardiamist changed the title initialRouteName don't work with react-native-tab-view v3 on Android initialRouteName don't work with react-native-tab-view v3 on Android with Hermes Mar 19, 2021
@Bardiamist
Copy link
Author

Bardiamist commented Mar 19, 2021

I added minimal repro: https://github.com/Bardiamist/initialRouteRame
Important note: the bug is reproducible only with Hermes enabled

@Lukas-Heiligenbrunner
Copy link

This bug is fixed within v5.1.3 of react-native-pager-view: https://github.com/callstack/react-native-pager-view/releases

@Bardiamist
Copy link
Author

Thanks @troZee @KusStar @Lukas-Heiligenbrunner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants