mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 20:25:33 +08:00
Update README.md
Removed an extra bracket and line end "];" in the callback of the processString method.
This commit is contained in:
@@ -133,7 +133,7 @@ It is certainly possible to create a great app using React Native without writin
|
||||
- (void)processString:(NSString *)input callback:(RCTResponseSenderBlock)callback
|
||||
{
|
||||
RCT_EXPORT(); // available as NativeModules.MyCustomModule.processString
|
||||
callback(@[[input stringByReplacingOccurrencesOfString:@"Goodbye" withString:@"Hello"];]]);
|
||||
callback(@[[input stringByReplacingOccurrencesOfString:@"Goodbye" withString:@"Hello"]]);
|
||||
}
|
||||
@end
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user