Skip to content

Commit

Permalink
Tweak RN patch (#5477)
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok authored Sep 24, 2024
1 parent ddaf2c6 commit f231da0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions patches/react-native+0.74.1.patch
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
diff --git a/node_modules/react-native/Libraries/Blob/RCTFileReaderModule.mm b/node_modules/react-native/Libraries/Blob/RCTFileReaderModule.mm
index caa5540..6027825 100644
index caa5540..c5d4e67 100644
--- a/node_modules/react-native/Libraries/Blob/RCTFileReaderModule.mm
+++ b/node_modules/react-native/Libraries/Blob/RCTFileReaderModule.mm
@@ -71,7 +71,7 @@ @implementation RCTFileReaderModule
[NSString stringWithFormat:@"Unable to resolve data for blob: %@", [RCTConvert NSString:blob[@"blobId"]]],
nil);
@@ -73,7 +73,7 @@ @implementation RCTFileReaderModule
} else {
- NSString *type = [RCTConvert NSString:blob[@"type"]];
+ NSString *type = RCTNilIfNull([RCTConvert NSString:blob[@"type"]]);
NSString *type = [RCTConvert NSString:blob[@"type"]];
NSString *text = [NSString stringWithFormat:@"data:%@;base64,%@",
type != nil && [type length] > 0 ? type : @"application/octet-stream",
- type != nil && [type length] > 0 ? type : @"application/octet-stream",
+ ![type isEqual:[NSNull null]] && [type length] > 0 ? type : @"application/octet-stream",
[data base64EncodedStringWithOptions:0]];

resolve(text);
diff --git a/node_modules/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.mm b/node_modules/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.mm
index b0d71dc..41b9a0e 100644
--- a/node_modules/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.mm
Expand Down

0 comments on commit f231da0

Please sign in to comment.