mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +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);
|
|
}
|