-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
NavigationExperimental: Unnecessary rendering in NavigationView. #6579
Comments
The docs say |
Good catch. The is no transition and we should just render the focused scene.
|
Summary:This address the issue reported at #6579 (comment) NavigationView should have the same API as NavigationAnimatedView does except that NavigationView does not need the APIs for animation. This unify the API of our core components so that people can freely compose views with both NavigationAnimatedView or NavigationView. Reviewed By: fkgozali Differential Revision: D3096076 fb-gh-sync-id: 7536777a7d637da62a2636d750f9d91c5a0eb45f fbshipit-source-id: 7536777a7d637da62a2636d750f9d91c5a0eb45f
Summary:This address the issue reported at facebook#6579 (comment) NavigationView should have the same API as NavigationAnimatedView does except that NavigationView does not need the APIs for animation. This unify the API of our core components so that people can freely compose views with both NavigationAnimatedView or NavigationView. Reviewed By: fkgozali Differential Revision: D3096076 fb-gh-sync-id: 7536777a7d637da62a2636d750f9d91c5a0eb45f fbshipit-source-id: 7536777a7d637da62a2636d750f9d91c5a0eb45f
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/navigationexperimental-unnecessary-rendering-in-navigationview ProductPains helps the community prioritize the most important issues thanks to its voting feature. Also, if this issue is a bug, please consider sending a pull request with a fix. |
While I was testing out and tried to understand how
NavigationCompositionExample
works, I found thatrenderScene()
was called 3 times (exactly the number of tabs) for a single view. If you have N tabs, you will see N x N times of the debug log. I don't quite understand it. It doesn't seem it's necessary.The output:
I think, the culprit is
render()
inNavigationView
. It runsmap()
overchildren
. But why?The text was updated successfully, but these errors were encountered: