Open sercand opened 2 years ago
Hey! 👋
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?
Hey! 👋
It looks like you've omitted a few important sections from the issue template.
Please complete Snack or a link to a repository section.
Facing the same problem, did you find any solution?
Facing the same problem, did you find any solution?
@AndersonVanzo We decided to split project into different Frameworks and those new frameworks don't have dependency on react-native
We are also facing this issue. Any update on this?
Also running into this issue with Previews and Xcode 15
This issue is still happening. It is difficult to describe exact steps to reproduce since this is basic functionality with SwiftUI in any iOS project that includes React Native components.
What's happening is that in SwiftUI previews the normal setup for UIKit doesn't happen, so the Objective-C method swizzling in RNScreens
causes an infinite loop because findChildRNSScreensViewController
, which is called by reactNativeScreensChildViewControllerForStatusBarHidden
, always returns nil
. What I'd really love is some type of workaround to be able to use SwiftUI previews since that is absolutely the preferred method for development.
Still looking for a solution to this RNScreen issue but I think none will come in place, maybe changing library?
Description
When we add a SwiftUI Preview to our project in order to get a preview of a native component, we get an infinite loop of
reactNativeScreensChildViewControllerForStatusBarHidden
call and preview crashes.Steps to reproduce
Screens version
3.17
React Native version
0.68.3
Platforms
iOS
Build type
Debug mode
Device
iOS simulator. Xcode Preview
Acknowledgements
Yes