Skip to content

Conditional rendering of a screen shows a blank screen (new arch) #1628

@SpaghettiC0des

Description

@SpaghettiC0des

Description

Related to #690

I'm playing around with new architecture and the native stack navigator, and I encountered this issue. It's working properly when using the JS based stack navigator.

I have a simple redux state isLoggedIn which is just a simple boolean flag to simulate an authenticated user. I have a button to toggle the state to replace AuthStack with the MainStack. You know, the classic architecture for auth flow with react-navigation. More info on the official docs.

Steps to reproduce

Just follow the example here https://reactnavigation.org/docs/auth-flow/#define-our-screens

Snack or a link to a repository

https://github.com/karlmarxlopez/rn-navigation-native-stack-new-arch-issue

Screens version

3.18.2

React Native version

0.70.4

Platforms

iOS

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

iOS simulator

Device model

iPhone 14 Pro

Acknowledgements

Yes

Metadata

Metadata

Assignees

Labels

Missing reproThis issue need minimum repro scenarioPlatform: iOSThis issue is specific to iOS

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions