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
|
@implementation MyCustomViewManager
|
||||||
|
|
||||||
|
RCT_EXPORT_MODULE()
|
||||||
|
|
||||||
- (UIView *)view
|
- (UIView *)view
|
||||||
{
|
{
|
||||||
return [[MyCustomView alloc] init];
|
return [[MyCustomView alloc] init];
|
||||||
|
|
|
@ -215,12 +215,14 @@ var Message = React.createClass({
|
||||||
|
|
||||||
@implementation MyCustomViewManager
|
@implementation MyCustomViewManager
|
||||||
|
|
||||||
|
RCT_EXPORT_MODULE()
|
||||||
|
|
||||||
- (UIView *)view
|
- (UIView *)view
|
||||||
{
|
{
|
||||||
return [[MyCustomView alloc] init];
|
return [[MyCustomView alloc] init];
|
||||||
}
|
}
|
||||||
|
|
||||||
RCT_EXPORT_VIEW_PROPERTY(myCustomProperty);
|
RCT_EXPORT_VIEW_PROPERTY(myCustomProperty, NSString);
|
||||||
@end`}
|
@end`}
|
||||||
</Prism>
|
</Prism>
|
||||||
<Prism>
|
<Prism>
|
||||||
|
|
Loading…
Reference in New Issue