UNPKG

@bytedance/mona-client-mini

Version:

miniapp for mona

24 lines (23 loc) 1.03 kB
import React from 'react'; import { LifecycleContext, PageLifecycle } from '@bytedance/mona'; import TaskController from '@/reconciler/TaskController'; export declare function createPortal(children: React.ReactNode, containerInfo: any, key?: string): any; interface PageConfig { _controller: TaskController; _Component: React.ComponentType<any>; _pageLifecycleContext: LifecycleContext; onLoad: (...params: any[]) => void; onUnload: (...params: any[]) => void; onReady: (...params: any[]) => void; onShow: (...params: any[]) => void; onHide: (...params: any[]) => void; onResize: (...params: any[]) => void; onPullDownRefresh: (...params: any[]) => void; onReachBottom: (...params: any[]) => void; onShareAppMessage: (...params: any[]) => void; onPageScroll: (...params: any[]) => void; $callLifecycle: (name: PageLifecycle, params?: any) => void; [key: string]: any; } export default function createPage(Component: React.ComponentType<any>): PageConfig; export {};