From a7356a8292e7ff14456fae1cf281d6e4b138d459 Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Fri, 27 Mar 2026 17:32:13 -0500 Subject: [PATCH] fix(fabric, textinput): support `enableFocusRing` --- .../ComponentViews/TextInput/RCTTextInputComponentView.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm b/packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm index 2e9030f25e46..24e7b2812244 100644 --- a/packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +++ b/packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm @@ -410,6 +410,12 @@ - (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared & NSArray *types = RCTPasteboardTypeArrayFromProps(newTextInputProps.traits.pastedTypes); [_backedTextInputView setReadablePasteBoardTypes:types]; } + + if (newTextInputProps.enableFocusRing != oldTextInputProps.enableFocusRing) { + if ([_backedTextInputView respondsToSelector:@selector(setEnableFocusRing:)]) { + [_backedTextInputView setEnableFocusRing:newTextInputProps.enableFocusRing]; + } + } #endif // macOS] [super updateProps:props oldProps:oldProps];