-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Using react-native-screens and SwiftUI Preview at the same project breaks Preview #1602
Comments
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? |
@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 |
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
The text was updated successfully, but these errors were encountered: