/
githubmirror
/
taro
Обзор
Документация
Войти
/
githubmirror
/
taro
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/taro-runtime-rn/src/instance.ts
38 строк
1 KB
koppt
chore: 升级 @tarojs/runtime-rn 的依赖
15 май 2024, 11:30
15 май 2024, 11:30
ce6e468
Код
Авторство
О чём код?
import { PageConfig } from './types/index' import type { Component } from 'react' interface Show { onShow?(options?: unknown): void onHide?(options?: unknown): void componentDidShow?(options?: unknown): void componentDidHide?(options?: unknown): void } export interface PageLifeCycle extends Show { onPullDownRefresh?(): void onReachBottom?(): void onPageScroll?(obj: { scrollTop: number }): void onResize?(options: unknown): void onTabItemTap?(obj: { index: string, pagePath: string, text: string }): void onReady?(): void onLoad?(options: Record<string, unknown>): void onUnload?(): void } export interface Instance<T = {}> extends Component<T>, PageLifeCycle { } export interface PageInstance extends PageLifeCycle { config: PageConfig route: string options: Record<string, any> getOpenerEventChannel?(): Record<string, any> __safeExecute?(lifecycle: keyof Instance, ...args: unknown[]): void __isReactComponent: boolean } export interface AppInstance extends Show { onLaunch?(options?: string): void onPageNotFound?(options?: string): void }