Add doc warning stating that TouchableOpacity can only support a single child

This commit is contained in:
Patrick Williams 2015-05-25 22:03:43 -07:00
parent a1193b7a93
commit 0466bbd616
2 changed files with 5 additions and 2 deletions

View File

@ -44,6 +44,9 @@ var onlyChild = require('onlyChild');
* );
* },
* ```
* > **NOTE**: TouchableOpacity supports only one child
* >
* > If you wish to have to have several child components, wrap them in a View.
*/
var TouchableOpacity = React.createClass({