Answers for "redux saga use navigation"

0

redux saga use navigation

// RootNavigation.js

import { createNavigationContainerRef } from '@react-navigation/native';

export const navigationRef = createNavigationContainerRef()

export function navigate(name, params) {
  if (navigationRef.isReady()) {
    navigationRef.navigate(name, params);
  }
}

// add other navigation functions that you need and export them
Posted by: Guest on August-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language