@samitouri / QOS-React / commits / bd6891742c

Remove unreferenced react-native-host-hooks from flow (#27457)

## Summary These modules are no longer referenced in the React codebase. We should remove them to limit the API surface area between React and React Native. ## How did you test this change? `yarn flow native && yarn flow fabric`

Pieter De Baets committed Oct 4, 2023 at 15:57 UTC bd6891742c606a4b8d6ce53760218c6ab3784b38
1 file changed -30
scripts/flow/react-native-host-hooks.js
-30
@@ -230,33 +230,3 @@ declare var nativeFabricUIManager: {
230 unstable_getCurrentEventPriority: () => number,
231 ...
232 };
233 -
234 -declare module 'View' {
235 - declare module.exports: typeof React$Component;
236 -}
237 -
238 -declare module 'RTManager' {
239 - declare function createNode(
240 - tag: number,
241 - classType: string,
242 - props: ?Object,
243 - ): void;
244 -
245 - declare function beginUpdates(): void;
246 -
247 - declare function appendChildToContext(
248 - contextTag: number,
249 - childTag: number,
250 - ): void;
251 - declare function appendChild(parentTag: number, childTag: number): void;
252 - declare function prependChild(childTag: number, beforeTag: number): void;
253 - declare function deleteChild(childTag: number): void;
254 - declare function updateNode(tag: number, props: ?Object): void;
255 -
256 - declare function completeUpdates(): void;
257 -}
258 -
259 -// shims/ReactFeatureFlags is generated by the packaging script
260 -declare module '../shims/ReactFeatureFlags' {
261 - declare export var debugRenderPhaseSideEffects: boolean;
262 -}