Skip to content

Commit

Permalink
Update RN typings for a shim (#17138)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Oct 18, 2019
1 parent 4eeee35 commit 0b61e26
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,19 @@ import type {
const invariant = require('invariant');

// Event configs
const customBubblingEventTypes = {};
const customDirectEventTypes = {};
const customBubblingEventTypes: {
[eventName: string]: $ReadOnly<{|
phasedRegistrationNames: $ReadOnly<{|
captured: string,
bubbled: string,
|}>,
|}>,
} = {};
const customDirectEventTypes: {
[eventName: string]: $ReadOnly<{|
registrationName: string,
|}>,
} = {};

exports.customBubblingEventTypes = customBubblingEventTypes;
exports.customDirectEventTypes = customDirectEventTypes;
Expand Down

0 comments on commit 0b61e26

Please sign in to comment.