From 0466bbd616bad1964b151c895b1389f05e1e6fc7 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Mon, 25 May 2015 22:03:43 -0700 Subject: [PATCH] Add doc warning stating that TouchableOpacity can only support a single child --- Libraries/Components/Touchable/TouchableOpacity.js | 3 +++ docs/NativeModulesIOS.md | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Libraries/Components/Touchable/TouchableOpacity.js b/Libraries/Components/Touchable/TouchableOpacity.js index 8d93cd841..d99bf7380 100644 --- a/Libraries/Components/Touchable/TouchableOpacity.js +++ b/Libraries/Components/Touchable/TouchableOpacity.js @@ -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({ diff --git a/docs/NativeModulesIOS.md b/docs/NativeModulesIOS.md index 24821ff88..db4d4d51b 100644 --- a/docs/NativeModulesIOS.md +++ b/docs/NativeModulesIOS.md @@ -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).