React native fast refresh 질문입니다

const Stack = createStackNavigator();
const Tab = createBottomTabNavigator();

const getTabBarVisibility = route => {
  const routeName = route.state
    ? route.state.routes[route.state.index].name
    : '';
  if (routeName === 'Login' || routeName === 'SignIn') {
    return false;
  }
  return true;
};

function TabNavigator() {
  return (
    <Tab.Navigator>
      <Tab.Screen name="Screen1" component={Screen1} />
      <Tab.Screen name="Screen2" component={Screen2} />
      <Tab.Screen name="Screen3" component={Screen3} />
      <Tab.Screen name="Screen4" component={Screen4} />
      <Tab.Screen
        name="Screen5"
        component={StackNavigator}
        options={({route}) => ({
          tabBarVisible: getTabBarVisibility(route),
        })}
      />
    </Tab.Navigator>
  );
}
const StackNavigator = () => {
  return (
    <Stack.Navigator initialRouteName="Screen5">
      <Stack.Screen
        name="Screen5"
        component={Screen5}
        options={{headerShown: false}}
      />
      <Stack.Screen
        name="Login"
        component={Login}
        options={{
          headerTitle: null,
          headerBackTitle: ' ',
          tabBarVisible: false,
        }}
      />
      <Stack.Screen
        name="FindId"
        component={FindId}
        options={{
          headerTitle: null,
          headerBackTitle: ' ',
          tabBarVisible: false,
        }}
      />
      <Stack.Screen
        name="FindPw"
        component={FindPw}
        options={{
          headerTitle: null,
          headerBackTitle: ' ',
          tabBarVisible: false,
        }}
      />
      <Stack.Screen
        name="SignIn"
        component={SignIn}
        options={{
          headerTitle: null,
          headerBackTitle: ' ',
          tabBarVisible: false,
        }}
      />
    </Stack.Navigator>
  );
};
export default () => {
  return (
    <NavigationContainer>
      <TabNavigator />
    </NavigationContainer>
  );
};

어떤 페이지든 fast refresh 상태에서 저장을 하면 메인으로 돌아갑니다 ㅠㅠㅠ navigation 때문으로 추측하고 있는데… 혹시 제가 잘못한 부분이 있을까요?
ps 모든페이지는 함수형으로 제작하였습니다 ㅠ
또한 바텀탭 네비게이터 안에 스택 네비게이터 형식으로 진행 하려고합니다