@samitouri / QOS-React-2 / commits / e417e0bf7c

Update ReactNativeViewConfigRegistry Flow Types (#13579)

Timothy Yung committed Sep 6, 2018 at 12:27 UTC e417e0bf7cddf7f190aaf145c3eca7018f6f36fb
1 file changed +3 -3
scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js
+3 -3
@@ -5,7 +5,7 @@
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @format
8 - * @flow
8 + * @flow strict-local
9 */
10
11 'use strict';
@@ -30,7 +30,7 @@ const viewConfigCallbacks = new Map();
30 const viewConfigs = new Map();
31
32 function processEventTypes(
33 - viewConfig: ReactNativeBaseComponentViewConfig,
33 + viewConfig: ReactNativeBaseComponentViewConfig<>,
34 ): void {
35 const {bubblingEventTypes, directEventTypes} = viewConfig;
36
@@ -86,7 +86,7 @@ exports.register = function(name: string, callback: ViewConfigGetter): string {
86 * If this is the first time the view has been used,
87 * This configuration will be lazy-loaded from UIManager.
88 */
89 -exports.get = function(name: string): ReactNativeBaseComponentViewConfig {
89 +exports.get = function(name: string): ReactNativeBaseComponentViewConfig<> {
90 let viewConfig;
91 if (!viewConfigs.has(name)) {
92 const callback = viewConfigCallbacks.get(name);