mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 21:46:07 +08:00
Merge pull request #665 from yangguang2009/bugfix
This commit is contained in:
2
website/src/react-native/index.js
vendored
2
website/src/react-native/index.js
vendored
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user