From a049130f34be951c9c67d2a472c7eb7f3d08f070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Fri, 3 Apr 2020 22:40:03 +0200 Subject: [PATCH] [General] [Fixed] Flow errors from YellowBox and BubblingEventHandler --- Libraries/Modal/RCTModalHostViewNativeComponent.js | 1 + Libraries/YellowBox/UI/YellowBoxInspectorHeader.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/Modal/RCTModalHostViewNativeComponent.js b/Libraries/Modal/RCTModalHostViewNativeComponent.js index e0c5ec6338daab..907acd07d1a4c2 100644 --- a/Libraries/Modal/RCTModalHostViewNativeComponent.js +++ b/Libraries/Modal/RCTModalHostViewNativeComponent.js @@ -15,6 +15,7 @@ import type {HostComponent} from '../Renderer/shims/ReactNativeTypes'; import type { WithDefault, DirectEventHandler, + BubblingEventHandler, Int32, } from '../Types/CodegenTypes'; diff --git a/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js b/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js index 3d9a29c986bac4..b415481e30c976 100644 --- a/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js +++ b/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js @@ -61,7 +61,7 @@ const YellowBoxInspectorHeader = (props: Props): React.Node => { const YellowBoxInspectorHeaderButton = ( props: $ReadOnly<{| disabled: boolean, - image: string, + image: number, onPress?: ?() => void, |}>, ): React.Node => (