about summary refs log tree commit diff
path: root/patches
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-09-24 15:24:56 -0700
committerGitHub <noreply@github.com>2024-09-24 15:24:56 -0700
commitf231da0cd9b83a57965d96dfe2cc9cbb3ea5fd0d (patch)
treee72ca564bbd896cf224b50f04dd129bac3d0d14e /patches
parentddaf2c62bd0fa93e02e8ed87a6a4b73bf4718fb9 (diff)
downloadvoidsky-f231da0cd9b83a57965d96dfe2cc9cbb3ea5fd0d.tar.zst
Tweak RN patch (#5477)
Diffstat (limited to 'patches')
-rw-r--r--patches/react-native+0.74.1.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/patches/react-native+0.74.1.patch b/patches/react-native+0.74.1.patch
index c91e88c3e..aee3da1ec 100644
--- a/patches/react-native+0.74.1.patch
+++ b/patches/react-native+0.74.1.patch
@@ -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