From a1dc92e6f0fd79c0aa4b5eea301aeccccd36a940 Mon Sep 17 00:00:00 2001 From: Eli White Date: Thu, 10 Jan 2019 11:09:53 -0800 Subject: [PATCH] Fix Flow type for onAccessibilityEscape Summary: This was added in [this PR](https://github.com/facebook/react-native/pull/22047) with a non strict type Reviewed By: yungsters Differential Revision: D13617894 fbshipit-source-id: 849f83203556e2830ac725570c9053503377f4be --- Libraries/Components/View/ViewPropTypes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Components/View/ViewPropTypes.js b/Libraries/Components/View/ViewPropTypes.js index f1e5cbe79..a630144d7 100644 --- a/Libraries/Components/View/ViewPropTypes.js +++ b/Libraries/Components/View/ViewPropTypes.js @@ -69,7 +69,7 @@ type DirectEventProps = $ReadOnly<{| * * See http://facebook.github.io/react-native/docs/view.html#onaccessibilityescape */ - onAccessibilityEscape?: ?Function, + onAccessibilityEscape?: ?() => void, |}>; type TouchEventProps = $ReadOnly<{|