From 0e3365da03b184cd4b50142ed3bab62bbf981e6a Mon Sep 17 00:00:00 2001 From: Alican Akyol <11759370+AlicanAkyol@users.noreply.github.com> Date: Thu, 15 Oct 2026 17:19:52 +0300 Subject: [PATCH] fix: KeyboardInput - dismissKeyboard without AppDelegate.window dismissKeyboard searched for the first responder from [UIApplication sharedApplication].delegate.window, which apps on the UIKit scene life cycle (React Native 0.88 template, Expo SDK 58) do not have, so it threw '-[AppDelegate window]: unrecognized selector'. Start from RCTKeyWindow() instead. --- .../rctcustomInputcontroller/RCTCustomInputControllerTemp.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/uilib-native/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m b/packages/uilib-native/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m index 58ba15469d..a61076f1ab 100644 --- a/packages/uilib-native/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m +++ b/packages/uilib-native/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m @@ -9,6 +9,7 @@ #import "RCTCustomKeyboardViewControllerTemp.h" #import +#import #import #import "LNAnimatorTemp.h" @@ -264,7 +265,7 @@ - (UITextField*)getTextFieldFromTextInputComponentView:(id)inputField { RCT_EXPORT_METHOD(dismissKeyboard) { - UIView *firstResponder = [self getFirstResponder:[UIApplication sharedApplication].delegate.window]; + UIView *firstResponder = [self getFirstResponder:RCTKeyWindow()]; if(firstResponder != nil) { [firstResponder resignFirstResponder];