1 |
|
2 | import {
|
3 | getEnv,
|
4 | Events,
|
5 | eventCenter,
|
6 | ENV_TYPE,
|
7 | createRef,
|
8 | render,
|
9 | internal_safe_get,
|
10 | internal_safe_set,
|
11 | internal_inline_style,
|
12 | internal_get_original,
|
13 | interceptors,
|
14 | RefsArray,
|
15 | handleLoopRef,
|
16 | useEffect,
|
17 | useLayoutEffect,
|
18 | useReducer,
|
19 | useState,
|
20 | useDidShow,
|
21 | useDidHide,
|
22 | usePullDownRefresh,
|
23 | useReachBottom,
|
24 | usePageScroll,
|
25 | useResize,
|
26 | useShareAppMessage,
|
27 | useTabItemTap,
|
28 | useRouter,
|
29 | useScope,
|
30 | useRef,
|
31 | useCallback,
|
32 | useMemo,
|
33 | useImperativeHandle,
|
34 | useContext,
|
35 | createContext,
|
36 | memo,
|
37 | setIsUsingDiff
|
38 | } from '@tarojs/taro'
|
39 | import { shallowEqual } from '@tarojs/utils'
|
40 |
|
41 | import Component from './component'
|
42 | import PureComponent from './pure-component'
|
43 | import createApp from './create-app'
|
44 | import createComponent from './create-component'
|
45 | import initNativeApi from './native-api'
|
46 | import propsManager from './propsManager'
|
47 | import { getElementById, genCompid } from './util'
|
48 |
|
49 | export const Taro = {
|
50 | Component,
|
51 | PureComponent,
|
52 | createApp,
|
53 | initNativeApi,
|
54 | Events,
|
55 | eventCenter,
|
56 | getEnv,
|
57 | createRef,
|
58 | render,
|
59 | ENV_TYPE,
|
60 | internal_safe_get,
|
61 | internal_safe_set,
|
62 | internal_inline_style,
|
63 | createComponent,
|
64 | internal_get_original,
|
65 | handleLoopRef: handleLoopRef(getElementById),
|
66 | propsManager,
|
67 | interceptors,
|
68 | RefsArray,
|
69 | genCompid,
|
70 | useEffect,
|
71 | useLayoutEffect,
|
72 | useReducer,
|
73 | useState,
|
74 | useDidShow,
|
75 | useDidHide,
|
76 | usePullDownRefresh,
|
77 | useReachBottom,
|
78 | usePageScroll,
|
79 | useResize,
|
80 | useShareAppMessage,
|
81 | useTabItemTap,
|
82 | useRouter,
|
83 | useScope,
|
84 | useRef,
|
85 | useCallback,
|
86 | useMemo,
|
87 | useImperativeHandle,
|
88 | useContext,
|
89 | createContext,
|
90 | memo,
|
91 | shallowEqual,
|
92 | setIsUsingDiff
|
93 | }
|
94 |
|
95 | export default Taro
|
96 |
|
97 | initNativeApi(Taro)
|