fix: make it possible to add multiple mountingOverrideDelegates#44927
fix: make it possible to add multiple mountingOverrideDelegates#44927WoLewicki wants to merge 3 commits into
Conversation
|
I am aware that the name of the method should be probably changed from |
Base commit: 8b53d41 |
| @@ -203,7 +206,7 @@ ShadowTreeRevision MountingCoordinator::getBaseRevision() const { | |||
| void MountingCoordinator::setMountingOverrideDelegate( | |||
There was a problem hiding this comment.
shouldn't this be renamed to 'addMountingOverrideDelegate'?
|
@sammy-SC has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
looks good. I'm importing the diff. If you manage to do the rename, that's great. Otherwise, it can be done in subsequent diff. Thank you |
|
As mentioned in #44927 (comment), not changing the name would make it work for different RN versions, but since we don't care too much about it on new arch right now, I'll change it 😅 |
|
@sammy-SC changed from |
|
This pull request was successfully merged by @WoLewicki in 358fe46. When will my fix make it into a release? | How to file a pick request? |
Summary:
PR changing the single mountingOverrideDelegate to a vector of those, so other listeners can operate on the transaction. Used by
react-native-screensin software-mansion/react-native-screens#2134 andreact-native-reanimatedin software-mansion/react-native-reanimated#6055.Till now, only one listener could be added there, meaning that e.g.
Layout Animationsfromreact-native,Layout Animationsfromreact-native-reanimatedand listening forScreenremoval inreact-native-screenscould not operate at the same time.Changelog:
[GENERAL] [FIXED] - Add option for multiple
mountingOverrideDelegatesTest Plan:
The code of
LayoutAnimationsinsidereact-nativeshould work the same since it will add just one listener then. For other cases, different libraries can read/mutate transactions.