Skip to content

Commit 64ae42c

Browse files
author
James Ide
committed
Merge pull request #1395 from pwmckenna/touchableopacitysinglechilddocs
Add doc warning stating that TouchableOpacity can only support a single child
2 parents 1586f31 + 0466bbd commit 64ae42c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Libraries/Components/Touchable/TouchableOpacity.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ var onlyChild = require('onlyChild');
4444
* );
4545
* },
4646
* ```
47+
* > **NOTE**: TouchableOpacity supports only one child
48+
* >
49+
* > If you wish to have to have several child components, wrap them in a View.
4750
*/
4851

4952
var TouchableOpacity = React.createClass({

docs/NativeModulesIOS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ class CalendarManager: NSObject {
281281
@objc func addEvent(name: String, location: String, date: NSNumber) -> Void {
282282
// Date is ready to use!
283283
}
284-
284+
285285
}
286286
```
287287

@@ -300,4 +300,4 @@ RCT_EXTERN_METHOD(addEvent:(NSString *)name location:(NSString *)location date:(
300300
@end
301301
```
302302

303-
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).
303+
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).

0 commit comments

Comments
 (0)