Merge pull request #551 from jungchris/patch-1

Minor update README.md - 'Extensibility' Section for iOS code (callback)
This commit is contained in:
Ben Alpert 2015-03-31 14:05:40 -07:00
Родитель 427d902e48 3ad16b96f1
Коммит b82de1e0d4
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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
```