From 6983efee7fe400d8d2223f7a0c023088f146e34d Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 22 Sep 2025 18:21:20 +0300 Subject: [PATCH] iOS 26 with design compatibility mode (#9059) * enable design compat mode * patch compressor lib https://github.com/numandev1/react-native-compressor/issues/367 --- app.config.js | 1 + patches/react-native-compressor+1.11.0.patch | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 patches/react-native-compressor+1.11.0.patch diff --git a/app.config.js b/app.config.js index 0b469a986b..4a67043987 100644 --- a/app.config.js +++ b/app.config.js @@ -102,6 +102,7 @@ module.exports = function (_config) { 'zh-Hans', 'zh-Hant', ], + UIDesignRequiresCompatibility: true, }, associatedDomains: ASSOCIATED_DOMAINS, entitlements: { diff --git a/patches/react-native-compressor+1.11.0.patch b/patches/react-native-compressor+1.11.0.patch new file mode 100644 index 0000000000..1f8332696d --- /dev/null +++ b/patches/react-native-compressor+1.11.0.patch @@ -0,0 +1,10 @@ +diff --git a/node_modules/react-native-compressor/ios/Video/VideoMain.swift b/node_modules/react-native-compressor/ios/Video/VideoMain.swift +index 6fe5e9c..af8a0b5 100644 +--- a/node_modules/react-native-compressor/ios/Video/VideoMain.swift ++++ b/node_modules/react-native-compressor/ios/Video/VideoMain.swift +@@ -1,5 +1,4 @@ + import Foundation +-import AssetsLibrary + import AVFoundation + import Photos + import MobileCoreServices