mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[RN] Update Secret Types (#12635)
This commit is contained in:
+7
-1
@@ -72,10 +72,16 @@ export type NativeMethodsMixinType = {
|
||||
type SecretInternalsType = {
|
||||
NativeMethodsMixin: NativeMethodsMixinType,
|
||||
ReactNativeComponentTree: any,
|
||||
computeComponentStackForErrorReporting(tag: number): string,
|
||||
// TODO (bvaughn) Decide which additional types to expose here?
|
||||
// And how much information to fill in for the above types.
|
||||
};
|
||||
|
||||
type SecretInternalsFabricType = {
|
||||
NativeMethodsMixin: NativeMethodsMixinType,
|
||||
ReactNativeComponentTree: any,
|
||||
};
|
||||
|
||||
/**
|
||||
* Flat ReactNative renderer bundles are too big for Flow to parse efficiently.
|
||||
* Provide minimal Flow typing for the high-level RN API and call it a day.
|
||||
@@ -105,5 +111,5 @@ export type ReactFabricType = {
|
||||
): any,
|
||||
unmountComponentAtNode(containerTag: number): any,
|
||||
|
||||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: SecretInternalsType,
|
||||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: SecretInternalsFabricType,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user