Skip to content

Commit

Permalink
Remove unreferenced react-native-host-hooks from flow (#27457)
Browse files Browse the repository at this point in the history
## 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`
  • Loading branch information
javache committed Oct 4, 2023
1 parent 85c2b51 commit bd68917
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions scripts/flow/react-native-host-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,33 +230,3 @@ declare var nativeFabricUIManager: {
unstable_getCurrentEventPriority: () => number,
...
};

declare module 'View' {
declare module.exports: typeof React$Component;
}

declare module 'RTManager' {
declare function createNode(
tag: number,
classType: string,
props: ?Object,
): void;

declare function beginUpdates(): void;

declare function appendChildToContext(
contextTag: number,
childTag: number,
): void;
declare function appendChild(parentTag: number, childTag: number): void;
declare function prependChild(childTag: number, beforeTag: number): void;
declare function deleteChild(childTag: number): void;
declare function updateNode(tag: number, props: ?Object): void;

declare function completeUpdates(): void;
}

// shims/ReactFeatureFlags is generated by the packaging script
declare module '../shims/ReactFeatureFlags' {
declare export var debugRenderPhaseSideEffects: boolean;
}

0 comments on commit bd68917

Please sign in to comment.