[fix] remove TouchalbeWithoutFeedback children prop type

Fix #634
This commit is contained in:
Nicolas Gallagher
2017-09-14 10:49:49 -07:00
parent 917b06a690
commit fc751ed715

View File

@@ -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(