Merge pull request #1237 from nickhudkins/patch-1

[Docs] Correct homepage code examples
This commit is contained in:
Brent Vatne 2015-05-28 16:36:21 -07:00
commit 1efd2c87c8
2 changed files with 5 additions and 1 deletions

View File

@ -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];

View File

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