mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
13 lines
298 B
JavaScript
13 lines
298 B
JavaScript
/* eslint-disable no-unused-expressions */
|
|
import * as React from 'react';
|
|
|
|
export const navigationRef = React.createRef();
|
|
|
|
export function navigate(name, params) {
|
|
navigationRef.current?.navigate(name, params);
|
|
}
|
|
|
|
export function dispatch(params) {
|
|
navigationRef.current?.dispatch(params);
|
|
}
|