in src/Registration.tsx [460:476]
onPress: async () => {
// IMPORTANT!: clear stored credentials before cleaning client, otherwise device will continue to re-connect
// await client?.disconnect();
// clearClient();
setRegisteringNew(true);
// navigation.navigate(screens.EMPTY);
navigation.dispatch(
StackActions.replace(screens.EMPTY),
);
// HACK: remove root screen from state and replace with registration
// navigation.dispatch({
// ...StackActions.replace(Pages.REGISTRATION),
// source: parentRoutes.find((r: any) => r.name === Pages.ROOT)?.key,
// target: parentNavigatorKey.key
// });
},