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 onDropViewInstance not invoked when page popped #7919

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NormanWangEndeavor
Copy link

What happened?

The onDropViewInstance of ViewManager is not called anymore when a screen is popped from the stack, since RN version 0.71.x.

What was the expected behavior?

The onDropViewInstance of ViewManager should be called.

Was it tested on the latest react-native-navigation?

I have tested this issue on the latest react-native-navigation release and it still reproduces.

Root Cause

The unmountReactApplication removes all children from RN version 0.71.x which causes the onDropViewInstance not to be called. Adding these removed children back resolves the problem.

In what environment did this happen?

React Native Navigation version: -
React Native version: since 0.71.x
Has Fabric (React Native's new rendering system) enabled: no
Node version: -
Device model: -
Android version: -

related issue: #7852

@maheshwaripurvesh
Copy link

@NormanWangEndeavor Thank you for the quick turnaround. @mobileoss @Niryo @asafkorem I confirm, we can merge this which will resolve #7852

@asafkorem
Copy link
Collaborator

asafkorem commented Oct 16, 2024

@d4vidi / @gosha212 can you please review this?

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

Successfully merging this pull request may close these issues.

3 participants