MaterialTopBarExample calls createNativeStackNavigator on every render, and PostAuthScreen does the same with createMaterialTopTabNavigator. A renderer diagnostic with navigator-factory instrumentation confirms parent updates recreate navigator types. This can remount navigation state unnecessarily. Proposed fix: construct both navigators once at module scope and keep the existing signed-in/signed-out screen logic. This source audit is AI-assisted.
MaterialTopBarExample calls createNativeStackNavigator on every render, and PostAuthScreen does the same with createMaterialTopTabNavigator. A renderer diagnostic with navigator-factory instrumentation confirms parent updates recreate navigator types. This can remount navigation state unnecessarily. Proposed fix: construct both navigators once at module scope and keep the existing signed-in/signed-out screen logic. This source audit is AI-assisted.