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:
Ramanpreet Nara
2024-01-10 12:35:33 -08:00
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,