mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add flow types to Maps in ReactNativeViewConfigRegistry.js (#26064)
Need to add types to these two maps to unblock React Native sync.
This commit is contained in:
@@ -34,8 +34,8 @@ const customDirectEventTypes: {
|
||||
exports.customBubblingEventTypes = customBubblingEventTypes;
|
||||
exports.customDirectEventTypes = customDirectEventTypes;
|
||||
|
||||
const viewConfigCallbacks = new Map();
|
||||
const viewConfigs = new Map();
|
||||
const viewConfigCallbacks = new Map<string, ?() => ViewConfig>();
|
||||
const viewConfigs = new Map<string, ViewConfig>();
|
||||
|
||||
function processEventTypes(viewConfig: ViewConfig): void {
|
||||
const {bubblingEventTypes, directEventTypes} = viewConfig;
|
||||
|
||||
Reference in New Issue
Block a user