From b3bbce86916420dbad35353c41f3414d5774e605 Mon Sep 17 00:00:00 2001 From: Tj Date: Thu, 13 Aug 2015 12:58:14 -0400 Subject: [PATCH] Nonnull for NSNumber argument This is required for the latest of React Native. (It's to ensure compatibility with Android.) http://imgur.com/o75Cu5S --- RNFSManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNFSManager.m b/RNFSManager.m index 714cb14..0aa7d74 100644 --- a/RNFSManager.m +++ b/RNFSManager.m @@ -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];