Nonnull for NSNumber argument

This is required for the latest of React Native. (It's to ensure compatibility with Android.)

http://imgur.com/o75Cu5S
This commit is contained in:
Tj 2015-08-13 12:58:14 -04:00
parent 8fe2479b7f
commit b3bbce8691
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ RCT_EXPORT_MODULE();
return dispatch_queue_create("pe.lum.rnfs", DISPATCH_QUEUE_SERIAL);
}
RCT_EXPORT_METHOD(readDir:(NSString*)directory inFolder:(NSNumber*)folder callback:(RCTResponseSenderBlock)callback){
RCT_EXPORT_METHOD(readDir:(NSString*)directory inFolder:(nonnull NSNumber*)folder callback:(RCTResponseSenderBlock)callback){
NSString *path;
int folderInt = [folder integerValue];