Update TouchableHighlight.js
Summary: Update to docs to indicate that TouchableHighlight must have exactly one child (i.e. not zero or more than one). Previously it was only indicated that it cannot have more than one. Closes https://github.com/facebook/react-native/pull/10244 Differential Revision: D3970841 fbshipit-source-id: f1c4c223cfaf150fec9bbae1041567d0c81eb63b
This commit is contained in:
parent
69ec19c61e
commit
fb355f663d
|
@ -60,7 +60,7 @@ var PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};
|
|||
* );
|
||||
* },
|
||||
* ```
|
||||
* > **NOTE**: TouchableHighlight supports only one child
|
||||
* > **NOTE**: TouchableHighlight must have one child (not zero or more than one)
|
||||
* >
|
||||
* > If you wish to have several child components, wrap them in a View.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue