Conversation
|
This pull request was exported from Phabricator. Differential Revision: D50176083 |
Base commit: bbc517c |
|
This pull request was exported from Phabricator. Differential Revision: D50176083 |
d944f3d to
be89eda
Compare
be89eda to
d57a837
Compare
|
This pull request was exported from Phabricator. Differential Revision: D50176083 |
d57a837 to
561b160
Compare
|
This pull request was exported from Phabricator. Differential Revision: D50176083 |
561b160 to
7802cc5
Compare
|
This pull request was exported from Phabricator. Differential Revision: D50176083 |
7802cc5 to
c29658a
Compare
|
This pull request was exported from Phabricator. Differential Revision: D50176083 |
c29658a to
e04db8a
Compare
|
This pull request was exported from Phabricator. Differential Revision: D50176083 |
e04db8a to
b169daf
Compare
|
This pull request was exported from Phabricator. Differential Revision: D50176083 |
b169daf to
b530ba4
Compare
|
This pull request was exported from Phabricator. Differential Revision: D50176083 |
b530ba4 to
90603d7
Compare
|
This pull request was exported from Phabricator. Differential Revision: D50176083 |
90603d7 to
192214f
Compare
|
This pull request was exported from Phabricator. Differential Revision: D50176083 |
Summary: Changelog: [Internal] Use JSI's NativeState abstraction to reference C++ objects across JS calls Reviewed By: rubennorte, sammy-SC Differential Revision: D50176083
192214f to
7399f5d
Compare
|
This pull request was exported from Phabricator. Differential Revision: D50176083 |
Generated by 🚫 dangerJS against 192214fd6196dd4c6b0270d59ea9d56fcf7d5c66 |
|
This pull request has been merged in f308f02. |
|
@javache why was |
…gain (#45290) Summary: This PR restores the virtual destructor for `ShadowNodeWrapper` which was added in #33500 and unfortunately removed in #40864. The virtual destructor here serves as a key function. Without a key function, `obj.hasNativeState<ShadowNodeWrapper>(rt)` **does not** work correctly between shared library boundaries on Android and always returns false. We need this pretty badly in third-party libraries like react-native-reanimated or react-native-gesture-handler. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [ANDROID] [FIXED] - Fix dynamic_cast (RTTI) for ShadowNodeWrapper when accessed by third-party libraries again Pull Request resolved: #45290 Test Plan: This patch fixes an issue in Reanimated's fabric-example app. Reviewed By: fabriziocucci Differential Revision: D59375554 Pulled By: javache fbshipit-source-id: 09f3eda89a67c26d6dacca3428e08d1b7138d350
…gain (#45290) Summary: This PR restores the virtual destructor for `ShadowNodeWrapper` which was added in #33500 and unfortunately removed in #40864. The virtual destructor here serves as a key function. Without a key function, `obj.hasNativeState<ShadowNodeWrapper>(rt)` **does not** work correctly between shared library boundaries on Android and always returns false. We need this pretty badly in third-party libraries like react-native-reanimated or react-native-gesture-handler. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [ANDROID] [FIXED] - Fix dynamic_cast (RTTI) for ShadowNodeWrapper when accessed by third-party libraries again Pull Request resolved: #45290 Test Plan: This patch fixes an issue in Reanimated's fabric-example app. Reviewed By: fabriziocucci Differential Revision: D59375554 Pulled By: javache fbshipit-source-id: 09f3eda89a67c26d6dacca3428e08d1b7138d350
Summary: Changelog: [Internal] Use JSI's NativeState abstraction to reference C++ objects across JS calls
Reviewed By: sammy-SC
Differential Revision: D50176083