-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode #37865
Conversation
This pull request was exported from Phabricator. Differential Revision: D46698717 |
134d2fa
to
b5b0d8f
Compare
… bridgeless mode (facebook#37865) Summary: Pull Request resolved: facebook#37865 In bridge mode UIManager's `constants` contain view configs for every registered native component and possibly some extra data. On iOS there is no extra data, but on Android in addition to view configs there are `genericBubblingEventTypes` and `genericDirectEventTypes`. They are then [merged](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js?lines=110-117) into `bubblingEventTypes` and `directEventTypes` of every view config. This diff replaces `getNativeViewConfig` binding with `getConstants` to make this behaviour possible in the bridgeless mode. This diff also removes caching on native side with the expectation that `constants` will be cached on JS side just as [it is done](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/PaperUIManager.js?lines=24-32) in bridge mode. Changelog: [Internal] - Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode. Differential Revision: D46698717 fbshipit-source-id: a26ae4d5e7f81917628f034ebf88766caeea4e75
This pull request was exported from Phabricator. Differential Revision: D46698717 |
Base commit: c803a5b |
… bridgeless mode (facebook#37865) Summary: Pull Request resolved: facebook#37865 In bridge mode UIManager's `constants` contain view configs for every registered native component and possibly some extra data. On iOS there is no extra data, but on Android in addition to view configs there are `genericBubblingEventTypes` and `genericDirectEventTypes`. They are then [merged](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js?lines=110-117) into `bubblingEventTypes` and `directEventTypes` of every view config. This diff replaces `getNativeViewConfig` binding with `getConstants` to make this behaviour possible in the bridgeless mode. This diff also removes caching on native side with the expectation that `constants` will be cached on JS side just as [it is done](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/PaperUIManager.js?lines=24-32) in bridge mode. Changelog: [Internal] - Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode. Differential Revision: https://internalfb.com/D46698717 fbshipit-source-id: 8b04fe2bd8f65c545cb852836736ca72d6e6f6de
… bridgeless mode (facebook#37865) Summary: Pull Request resolved: facebook#37865 In bridge mode UIManager's `constants` contain view configs for every registered native component and possibly some extra data. On iOS there is no extra data, but on Android in addition to view configs there are `genericBubblingEventTypes` and `genericDirectEventTypes`. They are then [merged](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js?lines=110-117) into `bubblingEventTypes` and `directEventTypes` of every view config. This diff replaces `getNativeViewConfig` binding with `getConstants` to make this behaviour possible in the bridgeless mode. This diff also removes caching on native side with the expectation that `constants` will be cached on JS side just as [it is done](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/PaperUIManager.js?lines=24-32) in bridge mode. Changelog: [Internal] - Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode. Differential Revision: https://internalfb.com/D46698717 fbshipit-source-id: a0c273284bfd79753d10a0a7c8b0863ed0c00362
… bridgeless mode (facebook#37865) Summary: Pull Request resolved: facebook#37865 In bridge mode UIManager's `constants` contain view configs for every registered native component and possibly some extra data. On iOS there is no extra data, but on Android in addition to view configs there are `genericBubblingEventTypes` and `genericDirectEventTypes`. They are then [merged](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js?lines=110-117) into `bubblingEventTypes` and `directEventTypes` of every view config. This diff replaces `getNativeViewConfig` binding with `getConstants` to make this behaviour possible in the bridgeless mode. This diff also removes caching on native side with the expectation that `constants` will be cached on JS side just as [it is done](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/PaperUIManager.js?lines=24-32) in bridge mode. Changelog: [Internal] - Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode. Differential Revision: D46698717 fbshipit-source-id: fa9fee4a9bea4a574dc024404fb27a1d4eb6c357
b5b0d8f
to
eaeb511
Compare
This pull request was exported from Phabricator. Differential Revision: D46698717 |
… bridgeless mode (facebook#37865) Summary: Pull Request resolved: facebook#37865 In bridge mode UIManager's `constants` contain view configs for every registered native component and possibly some extra data. On iOS there is no extra data, but on Android in addition to view configs there are `genericBubblingEventTypes` and `genericDirectEventTypes`. They are then [merged](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js?lines=110-117) into `bubblingEventTypes` and `directEventTypes` of every view config. This diff replaces `getNativeViewConfig` binding with `getConstants` to make this behaviour possible in the bridgeless mode. This diff also removes caching on native side with the expectation that `constants` will be cached on JS side just as [it is done](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/PaperUIManager.js?lines=24-32) in bridge mode. Changelog: [Internal] - Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode. Differential Revision: https://internalfb.com/D46698717 fbshipit-source-id: 3a28131ad38fe8632caf9b5f37d8c0a55936e9e5
… bridgeless mode (facebook#37865) Summary: Pull Request resolved: facebook#37865 In bridge mode UIManager's `constants` contain view configs for every registered native component and possibly some extra data. On iOS there is no extra data, but on Android in addition to view configs there are `genericBubblingEventTypes` and `genericDirectEventTypes`. They are then [merged](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js?lines=110-117) into `bubblingEventTypes` and `directEventTypes` of every view config. This diff replaces `getNativeViewConfig` binding with `getConstants` to make this behaviour possible in the bridgeless mode. This diff also removes caching on native side with the expectation that `constants` will be cached on JS side just as [it is done](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/PaperUIManager.js?lines=24-32) in bridge mode. Changelog: [Internal] - Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode. Differential Revision: https://internalfb.com/D46698717 fbshipit-source-id: 44295968b7b1307258bd66ee100238792a8f5e30
This pull request was exported from Phabricator. Differential Revision: D46698717 |
… bridgeless mode (facebook#37865) Summary: Pull Request resolved: facebook#37865 In bridge mode UIManager's `constants` contain view configs for every registered native component and possibly some extra data. On iOS there is no extra data, but on Android in addition to view configs there are `genericBubblingEventTypes` and `genericDirectEventTypes`. They are then [merged](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js#L110-L116) into `bubblingEventTypes` and `directEventTypes` of every view config. This diff replaces `getNativeViewConfig` binding with `getConstants` to make this behaviour possible in the bridgeless mode. This diff also removes caching on native side with the expectation that `constants` will be cached on JS side just as [it is done](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/ReactNative/PaperUIManager.js#L24-L32) in bridge mode. Changelog: [Internal] - Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode. Reviewed By: RSNara Differential Revision: D46698717 fbshipit-source-id: e20f7ab8b57ae56c35a3cd8b617643a01bc817bb
eaeb511
to
f8e3e50
Compare
… bridgeless mode (facebook#37865) Summary: Pull Request resolved: facebook#37865 In bridge mode UIManager's `constants` contain view configs for every registered native component and possibly some extra data. On iOS there is no extra data, but on Android in addition to view configs there are `genericBubblingEventTypes` and `genericDirectEventTypes`. They are then [merged](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js?lines=110-117) into `bubblingEventTypes` and `directEventTypes` of every view config. This diff replaces `getNativeViewConfig` binding with `getConstants` to make this behaviour possible in the bridgeless mode. This diff also removes caching on native side with the expectation that `constants` will be cached on JS side just as [it is done](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/PaperUIManager.js?lines=24-32) in bridge mode. Changelog: [Internal] - Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode. Differential Revision: https://internalfb.com/D46698717 fbshipit-source-id: 9a58844f627f3135825178fcafafda05a3a04416
… bridgeless mode (facebook#37865) Summary: Pull Request resolved: facebook#37865 In bridge mode UIManager's `constants` contain view configs for every registered native component and possibly some extra data. On iOS there is no extra data, but on Android in addition to view configs there are `genericBubblingEventTypes` and `genericDirectEventTypes`. They are then [merged](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js#L110-L116) into `bubblingEventTypes` and `directEventTypes` of every view config. This diff replaces `getNativeViewConfig` binding with `getConstants` to make this behaviour possible in the bridgeless mode. This diff also removes caching on native side with the expectation that `constants` will be cached on JS side just as [it is done](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/ReactNative/PaperUIManager.js#L24-L32) in bridge mode. Changelog: [Internal] - Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode. Reviewed By: RSNara Differential Revision: D46698717 fbshipit-source-id: d1eba91ba0c572a6b15d1341f08bf7421b3fc505
f8e3e50
to
ba71324
Compare
This pull request was exported from Phabricator. Differential Revision: D46698717 |
… bridgeless mode (facebook#37865) Summary: Pull Request resolved: facebook#37865 In bridge mode UIManager's `constants` contain view configs for every registered native component and possibly some extra data. On iOS there is no extra data, but on Android in addition to view configs there are `genericBubblingEventTypes` and `genericDirectEventTypes`. They are then [merged](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js?lines=110-117) into `bubblingEventTypes` and `directEventTypes` of every view config. This diff replaces `getNativeViewConfig` binding with `getConstants` to make this behaviour possible in the bridgeless mode. This diff also removes caching on native side with the expectation that `constants` will be cached on JS side just as [it is done](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/PaperUIManager.js?lines=24-32) in bridge mode. Changelog: [Internal] - Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode. Differential Revision: https://internalfb.com/D46698717 fbshipit-source-id: 42091c3797bd6d5845e4b17a4c4a9c56883213fa
… bridgeless mode (facebook#37865) Summary: Pull Request resolved: facebook#37865 In bridge mode UIManager's `constants` contain view configs for every registered native component and possibly some extra data. On iOS there is no extra data, but on Android in addition to view configs there are `genericBubblingEventTypes` and `genericDirectEventTypes`. They are then [merged](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js?lines=110-117) into `bubblingEventTypes` and `directEventTypes` of every view config. This diff replaces `getNativeViewConfig` binding with `getConstants` to make this behaviour possible in the bridgeless mode. This diff also removes caching on native side with the expectation that `constants` will be cached on JS side just as [it is done](https://www.internalfb.com/code/fbsource/[e79a64c30e96df858e159d2fb6c71c5aff422e19]/xplat/js/react-native-github/packages/react-native/Libraries/ReactNative/PaperUIManager.js?lines=24-32) in bridge mode. Changelog: [Internal] - Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode. Differential Revision: https://internalfb.com/D46698717 fbshipit-source-id: c74f6b78eb6d6887e160b32a61a6449bd4c26680
… bridgeless mode (facebook#37865) Summary: Pull Request resolved: facebook#37865 In bridge mode UIManager's `constants` contain view configs for every registered native component and possibly some extra data. On iOS there is no extra data, but on Android in addition to view configs there are `genericBubblingEventTypes` and `genericDirectEventTypes`. They are then [merged](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js#L110-L116) into `bubblingEventTypes` and `directEventTypes` of every view config. This diff replaces `getNativeViewConfig` binding with `getConstants` to make this behaviour possible in the bridgeless mode. This diff also removes caching on native side with the expectation that `constants` will be cached on JS side just as [it is done](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/ReactNative/PaperUIManager.js#L24-L32) in bridge mode. Changelog: [Internal] - Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode. Reviewed By: RSNara Differential Revision: D46698717 fbshipit-source-id: 5ce0ac0e7b48f2267465737125e18edcd8999813
ba71324
to
e7eb7f6
Compare
This pull request was exported from Phabricator. Differential Revision: D46698717 |
… bridgeless mode (facebook#37865) Summary: Pull Request resolved: facebook#37865 In bridge mode UIManager's `constants` contain view configs for every registered native component and possibly some extra data. On iOS there is no extra data, but on Android in addition to view configs there are `genericBubblingEventTypes` and `genericDirectEventTypes`. They are then [merged](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js#L110-L116) into `bubblingEventTypes` and `directEventTypes` of every view config. This diff replaces `getNativeViewConfig` binding with `getConstants` to make this behaviour possible in the bridgeless mode. This diff also removes caching on native side with the expectation that `constants` will be cached on JS side just as [it is done](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/ReactNative/PaperUIManager.js#L24-L32) in bridge mode. Changelog: [Internal] - Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode. Reviewed By: RSNara Differential Revision: D46698717 fbshipit-source-id: a42d232ed131c0f6dbd6901dc262d5931fb8e6e4
This pull request was exported from Phabricator. Differential Revision: D46698717 |
e7eb7f6
to
354cda7
Compare
This pull request was successfully merged by @dmytrorykun in a9618b3. When will my fix make it into a release? | Upcoming Releases |
This pull request has been merged in a9618b3. |
Summary:
In bridge mode UIManager's
constants
contain view configs for every registered native component and possibly some extra data.On iOS there is no extra data, but on Android in addition to view configs there are
genericBubblingEventTypes
andgenericDirectEventTypes
. They are then merged intobubblingEventTypes
anddirectEventTypes
of every view config.This diff replaces
getNativeViewConfig
binding withgetConstants
to make this behaviour possible in the bridgeless mode.This diff also removes caching on native side with the expectation that
constants
will be cached on JS side just as it is done in bridge mode.Differential Revision: D46698717