Skip to content

Commit e417e0b

Browse files
yungstersbvaughn
authored andcommitted
Update ReactNativeViewConfigRegistry Flow Types (facebook#13579)
1 parent 8f45a68 commit e417e0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*
77
* @format
8-
* @flow
8+
* @flow strict-local
99
*/
1010

1111
'use strict';
@@ -30,7 +30,7 @@ const viewConfigCallbacks = new Map();
3030
const viewConfigs = new Map();
3131

3232
function processEventTypes(
33-
viewConfig: ReactNativeBaseComponentViewConfig,
33+
viewConfig: ReactNativeBaseComponentViewConfig<>,
3434
): void {
3535
const {bubblingEventTypes, directEventTypes} = viewConfig;
3636

@@ -86,7 +86,7 @@ exports.register = function(name: string, callback: ViewConfigGetter): string {
8686
* If this is the first time the view has been used,
8787
* This configuration will be lazy-loaded from UIManager.
8888
*/
89-
exports.get = function(name: string): ReactNativeBaseComponentViewConfig {
89+
exports.get = function(name: string): ReactNativeBaseComponentViewConfig<> {
9090
let viewConfig;
9191
if (!viewConfigs.has(name)) {
9292
const callback = viewConfigCallbacks.get(name);

0 commit comments

Comments
 (0)