IOS Native crashes and Xcode shows Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)
I load the app with setRoot initially and after login/register call setStackRoot to switch to bottom tabs app but it crashes there itself
Navigation.setRoot({
root: {
stack: {
children: [
{
component: {
name: "LoginScreen",
id: "LoginScreen"
}
}
]
}
}
});
try {
Navigation.setStackRoot(this.props.componentId, {
bottomTabs: {
children: [
{
stack: {
children: [
{
component: {
name: "FirstTabScreen",
id: "FirstTabScreen"
}
}
],
options: {
bottomTab: {
text: "One",
textColor: Colors.tabIconLabelColor,
selectedTextColor: Colors.primary,
fontFamily: Fonts.fontFamilyEnNormal,
fontSize: Styles.tabBarLabelFontSize,
icon: Config.tab1Icon,
iconColor: Colors.tabIconLabelColor,
selectedIconColor: Colors.primary
}
}
}
},
{
stack: {
children: [
{
component: {
name: "SecondTabScreen",
id: "SecondTabScreen"
}
}
],
options: {
bottomTab: {
text: "Two",
textColor: Colors.tabIconLabelColor,
selectedTextColor: Colors.primary,
fontFamily: Fonts.fontFamilyEnNormal,
fontSize: Styles.tabBarLabelFontSize,
icon: Config.tab2Icon,
iconColor: Colors.tabIconLabelColor,
selectedIconColor: Colors.primary
}
}
}
},
{
stack: {
children: [
{
component: {
name: "ThirdTabScreen",
id: "ThirdTabScreen"
}
}
],
options: {
bottomTab: {
text: "Three",
textColor: Colors.tabIconLabelColor,
selectedTextColor: Colors.primary,
fontFamily: Fonts.fontFamilyEnNormal,
fontSize: Styles.tabBarLabelFontSize,
icon: Config.tab3Icon,
iconColor: Colors.tabIconLabelColor,
selectedIconColor: Colors.primary
}
}
}
},
{
stack: {
children: [
{
component: {
name: "ForthTabScreen",
id: "ForthTabScreen"
}
}
],
options: {
bottomTab: {
text: "Four",
textColor: Colors.tabIconLabelColor,
selectedTextColor: Colors.primary,
fontFamily: Fonts.fontFamilyEnNormal,
fontSize: Styles.tabBarLabelFontSize,
icon: Config.tab4Icon,
iconColor: Colors.tabIconLabelColor,
selectedIconColor: Colors.primary
}
}
}
}
]
}
});
} catch (error) {
console.log(error);
}

Hi @guyca can you please check this?
Hi any update on this issue
@rf1804 Did you solve that? I'm having the same error... @guyca any update?
@lucasfalcaojump no, for the meantime i'm reloading the app, hoping to get it resolved this soon @guyca
@rf1804 I did a workaround that is working, but it's not the ideal! Since the device is iOS and doesn't have the back button hardware I did a simple if else with the Platform.OS from react native. The code is something like this:
if(Platform.OS === 'ios') { Navigation.push(this.props.componentId, { ...component }) } else { Navigation.setStackRoot(this.props.componentId, [{ ...component }]) }
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
It's not stale @guyca
Any workaround? Is this working in v3?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
The issue has been closed for inactivity.
Most helpful comment
It's not stale @guyca