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:
parent
8fe2479b7f
commit
b3bbce8691
|
@ -21,7 +21,7 @@ RCT_EXPORT_MODULE();
|
||||||
return dispatch_queue_create("pe.lum.rnfs", DISPATCH_QUEUE_SERIAL);
|
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;
|
NSString *path;
|
||||||
int folderInt = [folder integerValue];
|
int folderInt = [folder integerValue];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue