[RN] Update Secret Types (#12635)

This commit is contained in:
Sebastian Markbåge
2018-04-17 19:21:46 -07:00
committed by GitHub
parent b05e67e36a
commit 039695cc01
+7 -1
View File
@@ -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,
};