Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fixed missing param.
  • Loading branch information
nicklockwood committed Apr 19, 2015
1 parent 170c020 commit c3658fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ RCT_EXPORT_METHOD(processString:(NSString *)input callback:(RCTResponseSenderBlo
{
callback(@[[input stringByReplacingOccurrencesOfString:@"Goodbye" withString:@"Hello"]]);
}

@end
```

Expand Down Expand Up @@ -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
```
Expand Down

0 comments on commit c3658fd

Please sign in to comment.