Add doc warning stating that TouchableOpacity can only support a single child

This commit is contained in:
Patrick Williams 2015-05-25 22:03:43 -07:00
parent a1193b7a93
commit 0466bbd616
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({

View File

@ -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).