Merge pull request #1395 from pwmckenna/touchableopacitysinglechilddocs
Add doc warning stating that TouchableOpacity can only support a single child
This commit is contained in:
commit
64ae42c10a
|
@ -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({
|
||||
|
|
|
@ -281,7 +281,7 @@ class CalendarManager: NSObject {
|
|||
@objc func addEvent(name: String, location: String, date: NSNumber) -> Void {
|
||||
// Date is ready to use!
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -300,4 +300,4 @@ RCT_EXTERN_METHOD(addEvent:(NSString *)name location:(NSString *)location date:(
|
|||
@end
|
||||
```
|
||||
|
||||
You can also use `RCT_EXTERN_REMAP_MODULE` and `RCT_EXTERN_REMAP_METHOD` to alter the JavaScript name of the module or methods you are exporting. For more information see [`RCTBridgeModule`](https://github.com/facebook/react-native/blob/master/React/Base/RCTBridgeModule.h).
|
||||
You can also use `RCT_EXTERN_REMAP_MODULE` and `RCT_EXTERN_REMAP_METHOD` to alter the JavaScript name of the module or methods you are exporting. For more information see [`RCTBridgeModule`](https://github.com/facebook/react-native/blob/master/React/Base/RCTBridgeModule.h).
|
||||
|
|
Loading…
Reference in New Issue