📜  redux saga 使用导航 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:02.152000             🧑  作者: Mango

代码示例1
// 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