Update headers for React Native shims (#12806)
Timothy Yung committed
May 14, 2018 at 17:47 UTC
369dd4fb1742917cb14486e33bb0e59bda62b23d
10 files changed
+17
-9
packages/react-native-renderer/src/ReactNativeTypes.js
+2
@@ -89,7 +89,9 @@ export type NativeMethodsMixinType = {
89
90
type SecretInternalsType = {
91
NativeMethodsMixin: NativeMethodsMixinType,
92
+ ReactDebugTool?: any,
93
ReactNativeComponentTree: any,
94
+ ReactPerf?: any,
95
computeComponentStackForErrorReporting(tag: number): string,
96
// TODO (bvaughn) Decide which additional types to expose here?
97
// And how much information to fill in for the above types.
scripts/rollup/shims/react-native-fb/ReactFeatureFlags.js
+2
-1
@@ -4,7 +4,8 @@
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
*
7
- * @providesModule ReactFeatureFlags
7
+ * @format
8
+ * @flow
9
*/
10
11
'use strict';
scripts/rollup/shims/react-native/NativeMethodsMixin.js
+1
-1
@@ -4,7 +4,7 @@
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
*
7
- * @providesModule NativeMethodsMixin
7
+ * @format
8
* @flow
9
*/
10
scripts/rollup/shims/react-native/ReactDebugTool.js
+2
-1
@@ -4,7 +4,8 @@
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
*
7
- * @providesModule ReactDebugTool
7
+ * @format
8
+ * @flow
9
*/
10
11
'use strict';
scripts/rollup/shims/react-native/ReactFabric.js
+2
-1
@@ -4,9 +4,10 @@
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
*
7
- * @providesModule ReactFabric
7
+ * @format
8
* @flow
9
*/
10
+
11
'use strict';
12
13
const BatchedBridge = require('BatchedBridge');
scripts/rollup/shims/react-native/ReactNative.js
+2
-1
@@ -4,9 +4,10 @@
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
*
7
- * @providesModule ReactNative
7
+ * @format
8
* @flow
9
*/
10
+
11
'use strict';
12
13
import type {ReactNativeType} from 'ReactNativeTypes';
scripts/rollup/shims/react-native/ReactNativeComponentTree.js
+1
-1
@@ -4,7 +4,7 @@
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
*
7
- * @providesModule ReactNativeComponentTree
7
+ * @format
8
* @flow
9
*/
10
scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js
+2
-1
@@ -4,9 +4,10 @@
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
*
7
- * @providesModule ReactNativeViewConfigRegistry
7
+ * @format
8
* @flow
9
*/
10
+
11
'use strict';
12
13
import type {
scripts/rollup/shims/react-native/ReactPerf.js
+2
-1
@@ -4,7 +4,8 @@
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
*
7
- * @providesModule ReactPerf
7
+ * @format
8
+ * @flow
9
*/
10
11
'use strict';
scripts/rollup/shims/react-native/createReactNativeComponentClass.js
+1
-1
@@ -4,7 +4,7 @@
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
*
7
- * @providesModule createReactNativeComponentClass
7
+ * @format
8
* @flow
9
*/
10