Update README.md

Fixed missing param.
This commit is contained in:
Nick Lockwood committed 2015-04-19 21:58:43 +01:00
1 parent 170c020576
commit c3658fd90a
1 file changed
+3 -1
+3 -1
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
```