From d6513ca03f14c39fb4825598564297e29f5ca5be Mon Sep 17 00:00:00 2001 From: Elliot Hesp Date: Wed, 6 Jan 2016 11:51:34 -0800 Subject: [PATCH] Add "Only supports one child" to TouchableWithoutFeedback Summary: Closes https://github.com/facebook/react-native/pull/4985 Reviewed By: svcscm Differential Revision: D2794384 Pulled By: bestander fb-gh-sync-id: 7332a83df635619d1d6bfacbf6e9c71af90179d9 --- Libraries/Components/Touchable/TouchableWithoutFeedback.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Libraries/Components/Touchable/TouchableWithoutFeedback.js b/Libraries/Components/Touchable/TouchableWithoutFeedback.js index 8c04c9457..96bcb6bf9 100755 --- a/Libraries/Components/Touchable/TouchableWithoutFeedback.js +++ b/Libraries/Components/Touchable/TouchableWithoutFeedback.js @@ -29,6 +29,10 @@ var PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30}; * Do not use unless you have a very good reason. All the elements that * respond to press should have a visual feedback when touched. This is * one of the primary reason a "web" app doesn't feel "native". + * + * > **NOTE**: TouchableWithoutFeedback supports only one child + * > + * > If you wish to have several child components, wrap them in a View. */ var TouchableWithoutFeedback = React.createClass({ mixins: [TimerMixin, Touchable.Mixin],