mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
Merge pull request #665 from yangguang2009/bugfix
This commit is contained in:
commit
6899676bea
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
|
||||
RCT_EXPORT_METHOD(processString:(NSString *)input callback:(RCTResponseSenderBlock)callback)
|
||||
{
|
||||
callback(@[[input stringByReplacingOccurrencesOfString:@"Goodbye" withString:@"Hello"];]]);
|
||||
callback(@[[input stringByReplacingOccurrencesOfString:@"Goodbye" withString:@"Hello"]]);
|
||||
}
|
||||
@end`}
|
||||
</Prism>
|
||||
|
Loading…
x
Reference in New Issue
Block a user