Introduce getDiffProps for <View> (#45552) #64
Merged
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.
TL;DR
This cherry-picks this PR on top of our RN 0.78 branch to fix some rendering issues happening on new arch:
Details
When using FlashList with new arch on our RN 0.78 build we were seeing weird layout bugs:
after testing we found that on RN 0.79 these issues don't happen. I ran a bisect and found that this commit fixes the issue.
Weird details
Now, its odd that this commit is fixing the issue, as the function
getDiffProps
is nowhere called during runtime! (There is one call site inandroid/FabricMountingManager.cpp
but thats behind a feature flag that is false).My best assumption is that in release mode (the only place where the bug happens) some optimization flags are applied which cause some corruption (messing with the vtable as this is a virtual function?). In debug those flags aren't applied and so the bug doesn't happen.