-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
BugPlatform: iOSiOS applications.iOS applications.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.Tech: Fabric
Description
🐛 Bug Report
When attempting to use RCTFabricSurfaceHostingProxyRootView
the application crashes when the surface is asked to start before the bridge has finished loading. Note, that I sometimes get a red screen instead, saying _fbBatchedBridge couldn't be found, it's "random". It is also pretty clear to me that the runtime pointer is null when this happens. Stack trace below:
To Reproduce
- Follow the directions to run on Fabric: working podspecs & works in RNTester #23803
- Comment out the code in
Swizzle_RCTFabricSurface.m
- remove the
RCTJavaScriptDidLoadNotification
observer inAppDelegate.m
- Open workspace, run app, observe error.
Expected Behavior
RCTFabricSurfaceHostingProxyRootView
to wait for the bridge to fully load before starting the surface.
Code Example
#23803. Hopefully my swizzle / hack code can be of help in proper solution!
Environment
N/A? This is RNTester.
fkgozali
Metadata
Metadata
Assignees
Labels
BugPlatform: iOSiOS applications.iOS applications.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.Tech: Fabric