Update README.md

Fixed missing param.
This commit is contained in:
Nick Lockwood 2015-04-19 21:58:43 +01:00
parent 170c020576
commit c3658fd90a
1 changed files with 3 additions and 1 deletions

View File

@ -138,6 +138,7 @@ RCT_EXPORT_METHOD(processString:(NSString *)input callback:(RCTResponseSenderBlo
{
callback(@[[input stringByReplacingOccurrencesOfString:@"Goodbye" withString:@"Hello"]]);
}
@end
```
@ -175,12 +176,13 @@ Custom iOS views can be exposed by subclassing `RCTViewManager`, implementing a
@end
@implementation MyCustomViewManager
- (UIView *)view
{
return [[MyCustomView alloc] init];
}
RCT_EXPORT_VIEW_PROPERTY(myCustomProperty);
RCT_EXPORT_VIEW_PROPERTY(myCustomProperty, NSString);
@end
```