mirror of
https://github.com/react/react-native.git
synced 2026-09-30 01:07:30 +08:00
Merge pull request #665 from yangguang2009/bugfix
This commit is contained in:
Vendored
+1
-1
@@ -176,7 +176,7 @@ RCT_EXPORT_MODULE();
|
||||
// Available as NativeModules.MyCustomModule.processString
|
||||
RCT_EXPORT_METHOD(processString:(NSString *)input callback:(RCTResponseSenderBlock)callback)
|
||||
{
|
||||
callback(@[[input stringByReplacingOccurrencesOfString:@"Goodbye" withString:@"Hello"];]]);
|
||||
callback(@[[input stringByReplacingOccurrencesOfString:@"Goodbye" withString:@"Hello"]]);
|
||||
}
|
||||
@end`}
|
||||
</Prism>
|
||||
|
||||
Reference in New Issue
Block a user