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): BottomNavigation fragment child already has a parent #9148

Merged
merged 2 commits into from Jan 17, 2021

Conversation

NathanWalker
Copy link
Contributor

PR Checklist

What is the current behavior?

Android BottomNavigation was super fragile, prone to bugs and race conditions due to poor fragment handling.

What is the new behavior?

Android BottomNavigation is stable and reliable.

closes #8132
closes #7901
closes #9051
closes #8251

rigor789
rigor789 previously approved these changes Jan 17, 2021
Copy link
Member

@rigor789 rigor789 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, though I think we could clean up the nesting a little bit to make it a bit easier to follow/read, and perhaps debug when necessary.

Left some suggestions to change var to const, but regardless this looks fine to merge. 🚀

packages/core/ui/bottom-navigation/index.android.ts Outdated Show resolved Hide resolved
packages/core/ui/bottom-navigation/index.android.ts Outdated Show resolved Hide resolved
packages/core/ui/bottom-navigation/index.android.ts Outdated Show resolved Hide resolved
@cla-bot cla-bot bot added the cla: yes label Jan 17, 2021
@NathanWalker NathanWalker merged commit 4690162 into master Jan 17, 2021
@NathanWalker NathanWalker deleted the fix/android-bottomnav branch January 17, 2021 17:21
rigor789 added a commit that referenced this pull request Jan 20, 2021
* chore(release): @nativescript/core@7.1.1

* feat(core): rollup additional Utils

* fix(webpack): support other workspace config styles

* chore(release): @nativescript/core@7.1.2

* fix(android): BottomNavigation fragment child already has a parent (#9148)

closes #8132
closes #7901
closes #9051
closes #8251

* chore(release): @nativescript/core@7.1.3

* types: missing typings for iosIgnoreSafeArea (#9153)

* Update build-docs.sh

Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
Co-authored-by: Martin Guillon <martin.guillon@akylas.fr>
@itsmerockingagain
Copy link

any fix for ns 6?

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