correct homepage code examples

The examples for Extensibility on the home page are broken :(.

RCT_EXPORT_MODULE() is missing, and RCT_EXPORT_VIEW_PROPERTY's signature has changed to accept a type as the 2nd argument.
This commit is contained in:
Nick Hudkins 2015-05-11 15:37:58 -04:00
parent 120c32c52c
commit 35590440d6
1 changed files with 3 additions and 1 deletions

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>