From c3658fd90a3d1aba87ead0c0426a8303dfbd9364 Mon Sep 17 00:00:00 2001 From: Nick Lockwood Date: Sun, 19 Apr 2015 21:58:43 +0100 Subject: [PATCH] Update README.md Fixed missing param. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e7921b38b..bcbb21154 100644 --- a/README.md +++ b/README.md @@ -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 ```