forked from cerc-io/laconic-wallet
* Use sign request page instead of modal * Fix context * Remove multiple if statements * Change metadata * Remove sign modal * Make review changes * Remove state --------- Co-authored-by: Adw8 <adwait@deepstacksoft.com>
15 lines
393 B
TypeScript
15 lines
393 B
TypeScript
import {
|
|
CommonActions,
|
|
createNavigationContainerRef,
|
|
} from '@react-navigation/native';
|
|
|
|
import { StackParamsList } from '../types';
|
|
|
|
export const navigationRef = createNavigationContainerRef<StackParamsList>();
|
|
|
|
export function navigateTo(routeName: string, params?: object) {
|
|
if (navigationRef.isReady()) {
|
|
navigationRef.dispatch(CommonActions.navigate(routeName, params));
|
|
}
|
|
}
|