Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RN 0.73.10] - Native Stack Navigator Input focus crashes app on iOS Device only #2523

Open
mobinni opened this issue Nov 20, 2024 · 0 comments
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided

Comments

@mobinni
Copy link

mobinni commented Nov 20, 2024

Description

When running an app on old architecture if you mount a native stack navigator and have an input that's autoFocus the app will hang and eventually crash and become unresponsive.

This only happens if:

  1. you're on iOS
  2. you're in release mode
  3. you're on a physical device\
  4. You wrap your content with a View with height="100%"

Relevant RN thread - facebook/react-native#42939

Why is this of concern to RN Screens?
If you use a regular stack navigator the app will have hanging frames but it will self-resolve, when using native stack navigators it completely halts and crashes

Steps to reproduce

You need a physical iOS device

  1. Run this app in release mode on iOS - https://github.com/mobinni/RNBrokenKeyboardAvoidingView
  2. press the navigation button
  3. App will hang and crash only on iOS

Snack or a link to a repository

https://github.com/mobinni/RNBrokenKeyboardAvoidingView

Screens version

3.33.0

React Native version

0.73.10

Platforms

iOS

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Paper (Old Architecture)

Build type

Release mode

Device

Real device

Device model

iPhone 11, 14 pro

Acknowledgements

Yes

@github-actions github-actions bot added Repro provided A reproduction with a snack or repo is provided Platform: iOS This issue is specific to iOS labels Nov 20, 2024
@mobinni mobinni changed the title [RN 0.73.10] - Native Stack Navigator Input focus crashes app on iOS Device ONLY [RN 0.73.10] - Native Stack Navigator Input focus crashes app on iOS Device only Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided
Projects
None yet
Development

No branches or pull requests

1 participant