Skip to content

Focus issue on iOS when a "Reduce Motion" is turn on #4133

@retyui

Description

@retyui

Description

Based on this issue: retyui/react-native-confirmation-code-field#258

important settings:

  1. iOS Settings -> Accessibility -> Motion ->
    1.2 Reduce Motion ON
    1.3 Prefer Cross-Fade Transitions ON.

When users navigate from screen 1 (where it has a focused input) to the screen 2 with a <TextInput autoFocus />

In logs you can, see the issue:

  1. User moves a focus to the "input 1"
  2. LOG ---onFocus 1
  3. User navigates to the "screen 2"
  4. LOG ---onBlur 1
  5. LOG ---onFocus 2
  6. LOG ---onBlur 2
  7. LOG ---onFocus 1 // <--- Hmm... focus has landed on input from screen 1 ? how ?
demo.mov

Steps to reproduce

Steps you can find here: https://github.com/rozhkovs/cross-fade-transitions-and-text-input-ios

Snack or a link to a repository

https://github.com/rozhkovs/cross-fade-transitions-and-text-input-ios

Screens version

4.25.2

React Native version

0.85.3

Platforms

iOS

JavaScript runtime

Hermes

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform:iosIssue related to iOS part of the libraryrepro-providedA reproduction with a snack or repo is provided

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions