mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
BridgelessUIManager: Finish setJSResponder, clearJSResponder (#42214)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42214 These methods are only used in the legacy React renderer. The Fabric renderer calls into different methods. So, let's just leave these unimplemented. NOTE: I introduced the warning back into clearJSResponder, because I couldn't find the internal call-site to it. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D52449787 fbshipit-source-id: bd001c0ca4a3e64aaaf6328b3322025b09ee6da9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cc1258cb7d
commit
65ddea8200
@@ -147,6 +147,12 @@ const UIManagerJSUnusedAPIs = {
|
||||
): void => {
|
||||
raiseSoftError('manageChildren');
|
||||
},
|
||||
setJSResponder: (reactTag: ?number, blockNativeResponder: boolean): void => {
|
||||
raiseSoftError('setJSResponder');
|
||||
},
|
||||
clearJSResponder: (): void => {
|
||||
raiseSoftError('clearJSResponder');
|
||||
},
|
||||
};
|
||||
|
||||
const UIManagerJSPlatformAPIs = Platform.select({
|
||||
@@ -334,12 +340,6 @@ const UIManagerJS: UIManagerJSInterface & {[string]: any} = {
|
||||
): void => {
|
||||
raiseSoftError('viewIsDescendantOf');
|
||||
},
|
||||
setJSResponder: (reactTag: ?number, blockNativeResponder: boolean): void => {
|
||||
raiseSoftError('setJSResponder');
|
||||
},
|
||||
clearJSResponder: (): void => {
|
||||
// Don't log error here because we're aware it gets called
|
||||
},
|
||||
configureNextLayoutAnimation: (
|
||||
config: Object,
|
||||
callback: () => void,
|
||||
|
||||
Reference in New Issue
Block a user