From fc751ed715581f81676b237102b352b3d83a072b Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Thu, 14 Sep 2017 10:49:49 -0700 Subject: [PATCH] [fix] remove TouchalbeWithoutFeedback children prop type Fix #634 --- src/components/Touchable/TouchableWithoutFeedback.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Touchable/TouchableWithoutFeedback.js b/src/components/Touchable/TouchableWithoutFeedback.js index b6605acd..4ab8b985 100644 --- a/src/components/Touchable/TouchableWithoutFeedback.js +++ b/src/components/Touchable/TouchableWithoutFeedback.js @@ -44,7 +44,6 @@ const TouchableWithoutFeedback = createReactClass({ accessibilityRole: BaseComponentPropTypes.accessibilityRole, accessibilityTraits: BaseComponentPropTypes.accessibilityTraits, accessible: bool, - children: element, /** * Delay in ms, from onPressIn, before onLongPress is called. */ @@ -161,6 +160,7 @@ const TouchableWithoutFeedback = createReactClass({ } = this.props; // Note(avik): remove dynamic typecast once Flow has been upgraded + // $FlowFixMe const child = React.Children.only(this.props.children); let children = child.props.children; warning(