showing results for - "redux saga use navigation"
Liam
23 May 2016
1// RootNavigation.js
2
3import { createNavigationContainerRef } from '@react-navigation/native';
4
5export const navigationRef = createNavigationContainerRef()
6
7export function navigate(name, params) {
8  if (navigationRef.isReady()) {
9    navigationRef.navigate(name, params);
10  }
11}
12
13// add other navigation functions that you need and export them