(name: string, params?: ParamListBase, options?: { merge: boolean })
| 3 | export const navigationRef = createNavigationContainerRef<ParamListBase>(); |
| 4 | |
| 5 | export function navigate(name: string, params?: ParamListBase, options?: { merge: boolean }) { |
| 6 | if (navigationRef.isReady()) { |
| 7 | navigationRef.current?.navigate({ name, params, merge: options?.merge }); |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | export function dispatch(action: NavigationAction) { |
| 12 | if (navigationRef.isReady()) { |
no outgoing calls
no test coverage detected