From 2f27e0791afbb21ba4dd528a8b821f3999c97ccb Mon Sep 17 00:00:00 2001 From: OmniBuild OS Date: Thu, 30 Apr 2026 12:57:51 -0500 Subject: [PATCH] fix(ios): guard preloadKeyboardIfNeeded with @available(iOS 26.0, *) On iOS 26+, `[UIResponder preloadKeyboardIfNeeded]` is a private API that causes a crash. Guard the call so it is skipped on iOS 26 and later. Fixes: https://github.com/kirillzyusko/react-native-keyboard-controller/issues/preload-crash-ios26 --- ios/KeyboardControllerModule.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ios/KeyboardControllerModule.mm b/ios/KeyboardControllerModule.mm index e8a7ac3a6b..dc175fd8e2 100644 --- a/ios/KeyboardControllerModule.mm +++ b/ios/KeyboardControllerModule.mm @@ -87,6 +87,9 @@ - (void)preload RCT_EXPORT_METHOD(preload) #endif { + if (@available(iOS 26.0, *)) { + return; + } [UIResponder preloadKeyboardIfNeeded]; }