Skip to content

iOS modal/formSheet: keyboard re-opens after screen focus when it was open in the previous screen #3480

@matthieugicquel

Description

@matthieugicquel

Description

When opening a modal while a TextInput is focused, the keyboard closes, but then re-opens after the modal opens.

See this video made by adding a basic TextInput in FabricExample, bug is visible the second time I open the formSheet, after I focused the keyboard.

ScreenRecording_12-15-2025.15-45-41_1.mov

Steps to reproduce

  1. Add a TextInput to the example app in apps/src/tests/TestFormSheet.tsx > Home
  2. Focus it
  3. Open a formSheet with one of the button

Repro conditions I confirmed:

  • iOS 26.1 or 26.2,
  • build with Xcode 26.1.1
  • react-native-screens 4.18.0 or from main today

Snack or a link to a repository

https://github.com/matthieugicquel/react-native-screens/tree/repro-wild-keyboard-appears

Screens version

3.18.0 and up

React Native version

0.81.5 and 0.83.0-rc.4

Platforms

iOS

JavaScript runtime

Hermes

Workflow

Expo managed workflow

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Real device

Device model

iPhone 16 Pro

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: iOSThis issue is specific to iOSRepro providedA reproduction with a snack or repo is provided

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions