Skip to content

Instantly share code, notes, and snippets.

@siddarthkay
Last active February 24, 2023 13:19
Show Gist options
  • Save siddarthkay/013fac0b76391e7c885c2ed6ac3755cb to your computer and use it in GitHub Desktop.
Save siddarthkay/013fac0b76391e7c885c2ed6ac3755cb to your computer and use it in GitHub Desktop.
Weird react-native-navigation error that comes after upgrading react-native version to 0.68.5
Exception 'Bridge not yet loaded! Send commands after Navigation.events().onAppLaunched() has been called.' was thrown while invoking setRoot on target RNNBridgeModule with params (
setRoot1,
{
modals = (
);
overlays = (
);
root = {
children = (
{
children = (
);
data = {
name = multiaccounts;
options = {
statusBar = {
style = light;
};
topBar = {
backButton = {
color = 4278784028;
testID = "back-button";
};
background = {
color = 4294967295;
};
elevation = 0;
noBorder = 1;
rightButtonColor = 4278784028;
rightButtons = {
icon = {
"__packager_asset" = 1;
height = 24;
scale = 3;
uri = "http://localhost:8081/assets/resources/images/icons/more@3x.png?platform=ios&hash=35b71f84193d5bc12514c3d0d5326224";
width = 24;
};
id = multiaccounts;
};
scrollEdgeAppearance = {
active = 0;
noBorder = 1;
};
title = {
color = 4278784028;
text = "Your keys";
};
};
};
};
id = multiaccounts;
type = Component;
},
{
children = (
);
data = {
name = login;
options = {
statusBar = {
style = light;
};
topBar = {
backButton = {
color = 4278784028;
testID = "back-button";
};
background = {
color = 4294967295;
};
elevation = 0;
noBorder = 1;
rightButtonColor = 4278784028;
rightButtons = {
icon = {
"__packager_asset" = 1;
height = 24;
scale = 3;
uri = "http://localhost:8081/assets/resources/images/icons/more@3x.png?platform=ios&hash=35b71f84193d5bc12514c3d0d5326224";
width = 24;
};
id = login;
};
scrollEdgeAppearance = {
active = 0;
noBorder = 1;
};
title = {
color = 4278784028;
};
};
};
};
id = login;
type = Component;
}
);
data = {
options = {
layout = {
backgroundColor = 4294967295;
componentBackgroundColor = 4294967295;
orientation = portrait;
};
statusBar = {
style = light;
};
topBar = {
backButton = {
color = 4278784028;
testID = "back-button";
};
background = {
color = 4294967295;
};
elevation = 0;
noBorder = 1;
rightButtonColor = 4278784028;
scrollEdgeAppearance = {
active = 0;
noBorder = 1;
};
title = {
color = 4278784028;
};
};
};
};
id = "multiaccounts-stack";
type = Stack;
};
},
2536,
2537
)
callstack: (
0 CoreFoundation 0x000000011785a8ab __exceptionPreprocess + 242
1 libobjc.A.dylib 0x0000000111f18ba3 objc_exception_throw + 48
2 CoreFoundation 0x000000011785a51d -[NSException init] + 0
3 StatusIm 0x000000010365d23c -[RNNCommandsHandler assertReady] + 108
4 StatusIm 0x0000000103656784 -[RNNCommandsHandler setRoot:commandId:completion:] + 132
5 StatusIm 0x000000010364e755 __52-[RNNBridgeModule setRoot:layout:resolver:rejecter:]_block_invoke + 149
6 StatusIm 0x0000000103423238 RCTExecuteOnMainQueue + 56
7 StatusIm 0x000000010364e648 -[RNNBridgeModule setRoot:layout:resolver:rejecter:] + 312
8 CoreFoundation 0x00000001178612fc __invoking___ + 140
9 CoreFoundation 0x000000011785e529 -[NSInvocation invoke] + 305
10 CoreFoundation 0x000000011785e7bc -[NSInvocation invokeWithTarget:] + 70
11 StatusIm 0x00000001033b8236 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 2534
12 StatusIm 0x00000001033bc6ca _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicEiN12_GLOBAL__N_117SchedulingContextE + 1402
13 StatusIm 0x00000001033bbf7c _ZZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEiENK3$_0clEv + 156
14 StatusIm 0x00000001033bbed9 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 25
15 libdispatch.dylib 0x000000011891c7fb _dispatch_call_block_and_release + 12
16 libdispatch.dylib 0x000000011891da3a _dispatch_client_callout + 8
17 libdispatch.dylib 0x000000011892d32c _dispatch_main_queue_drain + 1338
18 libdispatch.dylib 0x000000011892cde4 _dispatch_main_queue_callback_4CF + 31
19 CoreFoundation 0x00000001177b9b1f __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
20 CoreFoundation 0x00000001177b4436 __CFRunLoopRun + 2482
21 CoreFoundation 0x00000001177b36a7 CFRunLoopRunSpecific + 560
22 GraphicsServices 0x000000011aaeb28a GSEventRunModal + 139
23 UIKitCore 0x000000013c670ad3 -[UIApplication _run] + 994
24 UIKitCore 0x000000013c6759ef UIApplicationMain + 123
25 StatusIm 0x0000000102f5a7d8 main + 104
26 dyld 0x0000000111d6d2bf start_sim + 10
27 ??? 0x00000002099b7310 0x0 + 8751117072
)
RCTFatal
facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext)
facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const
invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_drain
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start_sim
0x0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment