react-navigation from 1.x to 5, how to migrate redux actions

App has all old code which I am upgrading to latest versions. It was using Redux for state management with StackNavigator. Since that is not supported, I am not able to understand how to migrate my existing redux actions, which were changing screens on various events.
An example action:

export const goToHome = () => ({
  type: PUSH,
  routeName: 'projectList',

Which earlier reached navReducer, which handled POPing and PUSHing of screens.

export default (state = initialState, action) => {
  let nextState;
  switch (action.type) {
    case NAV_POP:
      nextState = AppNavigator.router.getStateForAction(

Please suggest.

Source: React natvie