mirror of
https://github.com/status-im/react-native-fs.git
synced 2025-02-28 23:10:29 +00:00
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);
|
||||
}
|
||||
|
||||
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];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user