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

fix: android bottom tabs crash fix when used with react-native-screens #4550

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maciekBudzinski
Copy link

This PR fixes the issue with MaterialBottomTabsNavigator when used with react-native-screens by setting removeClippedSubviews for BottomNavigation scene to false.

Motivation

Having this flag set to true was causing android application to crash when the MaterialBottomTabsNavigator was used inside native stack navigator.

Related issue

Closes #4546

Test plan

Tested on https://github.com/maciekBudzinski/rnp-material-bottom-tabs-repro-issue

Before:

before.webm

After:

after.webm

@callstack-bot
Copy link

Hey @maciekBudzinski, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@angelov-selyami
Copy link

This fix is essential for resolving my issue with BottomTabNavigation. Please merge it soon. :)

@salememd
Copy link

We urgently need this fix. Thank,

@yashonomous
Copy link

this doesn't wok on android. had to set removeClippedSubviews to false to make it work. please have a look into the issue.

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