Skip to content

Commit f8979e0

Browse files
authored
Revert 'Fabric-compatible implementation of feature' and have Fabric noop when setJSResponder is called for now (#21009)
1 parent b9c4a01 commit f8979e0

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

packages/react-native-renderer/src/ReactFabricGlobalResponderHandler.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ const ReactFabricGlobalResponderHandler = {
1616
const isFabric = !!fromOrTo.stateNode.canonical._internalInstanceHandle;
1717

1818
if (isFabric) {
19-
if (from) {
20-
nativeFabricUIManager.setIsJSResponder(from.stateNode.node, false);
21-
}
22-
23-
if (to) {
24-
nativeFabricUIManager.setIsJSResponder(to.stateNode.node, true);
25-
}
19+
// Noop for now until setJSResponder/clearJSResponder are supported in Fabric
2620
} else {
2721
if (to !== null) {
2822
const tag = to.stateNode.canonical._nativeTag;

packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate/InitializeNativeFabricUIManager.js

-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ const RCTFabricUIManager = {
176176
);
177177
success(1, 1, 100, 100);
178178
}),
179-
setIsJSResponder: jest.fn(),
180179
};
181180

182181
global.nativeFabricUIManager = RCTFabricUIManager;

scripts/flow/react-native-host-hooks.js

-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ declare var nativeFabricUIManager: {
179179
locationY: number,
180180
callback: (Fiber) => void,
181181
) => void,
182-
setIsJSResponder: (node: Node, isJsResponder: boolean) => void,
183182
...
184183
};
185184

0 commit comments

Comments
 (0)