mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 15:45:32 +00:00
Merge pull request #1237 from nickhudkins/patch-1
[Docs] Correct homepage code examples
This commit is contained in:
commit
1efd2c87c8
@ -177,6 +177,8 @@ Custom iOS views can be exposed by subclassing `RCTViewManager`, implementing a
|
||||
|
||||
@implementation MyCustomViewManager
|
||||
|
||||
RCT_EXPORT_MODULE()
|
||||
|
||||
- (UIView *)view
|
||||
{
|
||||
return [[MyCustomView alloc] init];
|
||||
|
4
website/src/react-native/index.js
vendored
4
website/src/react-native/index.js
vendored
@ -215,12 +215,14 @@ var Message = React.createClass({
|
||||
|
||||
@implementation MyCustomViewManager
|
||||
|
||||
RCT_EXPORT_MODULE()
|
||||
|
||||
- (UIView *)view
|
||||
{
|
||||
return [[MyCustomView alloc] init];
|
||||
}
|
||||
|
||||
RCT_EXPORT_VIEW_PROPERTY(myCustomProperty);
|
||||
RCT_EXPORT_VIEW_PROPERTY(myCustomProperty, NSString);
|
||||
@end`}
|
||||
</Prism>
|
||||
<Prism>
|
||||
|
Loading…
x
Reference in New Issue
Block a user