Merge pull request #1395 from pwmckenna/touchableopacitysinglechilddocs

Add doc warning stating that TouchableOpacity can only support a single child
This commit is contained in:
James Ide 2015-05-25 22:20:19 -07:00
commit 64ae42c10a
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({