fix(Android): removeView on update if needed #2993
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I'm noticing with Fabric enabled on Android with these packages an increase in crashes on Android have begun to occur. The error is
"Exception thrown when executing UIFrameGuarded"
package.json:
Potentially fixes #2941 (and others)
I don't know if this "fix" is actually what you'd want or not, but maybe it'll give you guys an idea of somewhere to take a closer look?
The crash seems to be most reproducible when logging out and the navigation structure is changing:
I don't think this PR is really mergeable as is but maybe it'll lay the groundwork for something that is/future fixes?