Updated TouchableHighlight docs

Summary: ``onlyChild`` restriction is implemented in ``TouchableHighlight``, not ``TouchableOpacity``.
Closes https://github.com/facebook/react-native/pull/2542

Reviewed By: @​svcscm

Differential Revision: D2471539

Pulled By: @vjeux
This commit is contained in:
alvaromb 2015-09-23 11:22:22 -07:00 committed by facebook-github-bot-7
parent 118cf51522
commit b9ef384f74
1 changed files with 3 additions and 0 deletions

View File

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