Update ReactNativeViewConfigRegistry Flow Types (#13579)
This commit is contained in:
parent
8f45a685be
commit
e417e0bf7c
|
@ -5,7 +5,7 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
* @flow
|
||||
* @flow strict-local
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
@ -30,7 +30,7 @@ const viewConfigCallbacks = new Map();
|
|||
const viewConfigs = new Map();
|
||||
|
||||
function processEventTypes(
|
||||
viewConfig: ReactNativeBaseComponentViewConfig,
|
||||
viewConfig: ReactNativeBaseComponentViewConfig<>,
|
||||
): void {
|
||||
const {bubblingEventTypes, directEventTypes} = viewConfig;
|
||||
|
||||
|
@ -86,7 +86,7 @@ exports.register = function(name: string, callback: ViewConfigGetter): string {
|
|||
* If this is the first time the view has been used,
|
||||
* This configuration will be lazy-loaded from UIManager.
|
||||
*/
|
||||
exports.get = function(name: string): ReactNativeBaseComponentViewConfig {
|
||||
exports.get = function(name: string): ReactNativeBaseComponentViewConfig<> {
|
||||
let viewConfig;
|
||||
if (!viewConfigs.has(name)) {
|
||||
const callback = viewConfigCallbacks.get(name);
|
||||
|
|
Loading…
Reference in New Issue