import * as React from 'react' ; import { AppInstance , PageInstance } from './instance' ; import { navigationRef as rnNavigationRef } from '@tarojs/router-rn' ; interface Router { params : Record < string , unknown > ; path : string ; } interface Current { app : AppInstance | null ; router : Router | null ; page : PageInstance | null ; rnNavigationRef : React . RefObject < any > ; } export const Current = { app : null , router : null , page : null , rnNavigationRef } ; export const getCurrentInstance = ( ) => Current ;