Merge pull request #665 from yangguang2009/bugfix

This commit is contained in:
Tadeu Zagallo
2015-05-07 03:39:04 +01:00

View File

@@ -176,7 +176,7 @@ RCT_EXPORT_MODULE();
// Available as NativeModules.MyCustomModule.processString // Available as NativeModules.MyCustomModule.processString
RCT_EXPORT_METHOD(processString:(NSString *)input callback:(RCTResponseSenderBlock)callback) RCT_EXPORT_METHOD(processString:(NSString *)input callback:(RCTResponseSenderBlock)callback)
{ {
callback(@[[input stringByReplacingOccurrencesOfString:@"Goodbye" withString:@"Hello"];]]); callback(@[[input stringByReplacingOccurrencesOfString:@"Goodbye" withString:@"Hello"]]);
} }
@end`} @end`}
</Prism> </Prism>