Skip to content

Commit

Permalink
Updated TouchableHighlight docs
Browse files Browse the repository at this point in the history
Summary: ``onlyChild`` restriction is implemented in ``TouchableHighlight``, not ``TouchableOpacity``.
Closes #2542

Reviewed By: @​svcscm

Differential Revision: D2471539

Pulled By: @vjeux
  • Loading branch information
alvaromb authored and facebook-github-bot-7 committed Sep 23, 2015
1 parent 118cf51 commit b9ef384
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Libraries/Components/Touchable/TouchableHighlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit b9ef384

Please sign in to comment.