[RN] Update Secret Types (#12635)
Sebastian Markbåge committed
Apr 17, 2018 at 19:21 UTC
039695cc01201e16f41bdf9821439d7fb7a41bdb
1 file changed
+7
-1
packages/react-native-renderer/src/ReactNativeTypes.js
+7
-1
@@ -72,10 +72,16 @@ export type NativeMethodsMixinType = {
72
type SecretInternalsType = {
73
NativeMethodsMixin: NativeMethodsMixinType,
74
ReactNativeComponentTree: any,
75
+ computeComponentStackForErrorReporting(tag: number): string,
76
// TODO (bvaughn) Decide which additional types to expose here?
77
// And how much information to fill in for the above types.
78
};
79
80
+type SecretInternalsFabricType = {
81
+ NativeMethodsMixin: NativeMethodsMixinType,
82
+ ReactNativeComponentTree: any,
83
+};
84
+
85
/**
86
* Flat ReactNative renderer bundles are too big for Flow to parse efficiently.
87
* Provide minimal Flow typing for the high-level RN API and call it a day.
@@ -105,5 +111,5 @@ export type ReactFabricType = {
111
): any,
112
unmountComponentAtNode(containerTag: number): any,
113
108
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: SecretInternalsType,
114
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: SecretInternalsFabricType,
115
};