-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Rollout useNativeState #40864
Rollout useNativeState #40864
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
Summary: Pull Request resolved: facebook#40864 Changelog: [Internal] Use JSI's NativeState abstraction to reference C++ objects across JS calls Reviewed By: rubennorte, sammy-SC Differential Revision: D50176083 fbshipit-source-id: 969a7184a9b6b7a656017d0245be5830cdf16391
Summary: Changelog: [Internal] Use JSI's NativeState abstraction to reference C++ objects across JS calls Reviewed By: rubennorte, sammy-SC Differential Revision: D50176083
be89eda
to
d57a837
Compare
This pull request was exported from Phabricator. Differential Revision: D50176083 |
d57a837
to
561b160
Compare
Summary: Changelog: [Internal] Use JSI's NativeState abstraction to reference C++ objects across JS calls Reviewed By: rubennorte, sammy-SC Differential Revision: D50176083
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
561b160
to
7802cc5
Compare
This pull request was exported from Phabricator. Differential Revision: D50176083 |
7802cc5
to
c29658a
Compare
Summary: Changelog: [Internal] Use JSI's NativeState abstraction to reference C++ objects across JS calls Reviewed By: rubennorte, sammy-SC Differential Revision: D50176083
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
c29658a
to
e04db8a
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
e04db8a
to
b169daf
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
b169daf
to
b530ba4
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
b530ba4
to
90603d7
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
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 |
This pull request has been merged in f308f02. |
Summary: Pull Request resolved: facebook#40864 Changelog: [Internal] Use JSI's NativeState abstraction to reference C++ objects across JS calls Reviewed By: rubennorte, sammy-SC Differential Revision: D50176083 fbshipit-source-id: 43db3dd7af4ce666a648100cb8cd000d964630b1
@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