/
githubmirror
/
taro
Обзор
Документация
Войти
/
githubmirror
/
taro
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/taro-runtime-rn/src/current.ts
25 строк
522 B
koppt
chore: 升级 @tarojs/runtime-rn 的依赖
15 май 2024, 11:30
15 май 2024, 11:30
ce6e468
Код
Авторство
О чём код?
import React from 'react' import { AppInstance, PageInstance } from './instance' import { rnNavigationRef } from './router' export 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: Current = { app: null, router: null, page: null, rnNavigationRef // RN 导航实例私有对象 } export const getCurrentInstance = () => Current