We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8e9e5f commit 97a774fCopy full SHA for 97a774f
1 file changed
ios/RNPrint/RNPrint.m
@@ -17,13 +17,17 @@ - (dispatch_queue_t)methodQueue
17
RCT_EXPORT_METHOD(print:(NSDictionary *)options
18
resolver:(RCTPromiseResolveBlock)resolve
19
rejecter:(RCTPromiseRejectBlock)reject) {
20
-
+
21
if (options[@"filePath"]){
22
_filePath = [RCTConvert NSString:options[@"filePath"]];
23
+ } else {
24
+ _filePath = nil;
25
}
26
27
if (options[@"html"]){
28
_htmlString = [RCTConvert NSString:options[@"html"]];
29
30
+ _htmlString = nil;
31
32
33
if (options[@"printerURL"]){
0 commit comments