File tree 3 files changed +28
-4
lines changed
3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
export default {
10
- OS : 'wx'
10
+ OS : 'wx' ,
11
+ select : ( obj ) => {
12
+ return obj . wx
13
+ }
11
14
}
Original file line number Diff line number Diff line change @@ -58,6 +58,23 @@ const TimePickerAndroid = getNotSupport('TimePickerAndroid')
58
58
const ToastAndroid = getNotSupport ( 'ToastAndroid' )
59
59
const ToolbarAndroid = getNotSupport ( 'ToolbarAndroid' )
60
60
61
+ const AppState = {
62
+ removeEventListener : ( ) => {
63
+ console . warn ( 'not support AppState now!' )
64
+ } ,
65
+ addEventListener : ( ) => {
66
+ console . warn ( 'not support AppState now!' )
67
+ }
68
+ }
69
+ const NativeAppEventEmitter = {
70
+ addListener : ( ) => {
71
+ console . warn ( 'not support NativeAppEventEmitter now! use @areslabs/wx-eventemitter instead' )
72
+ return ( ) => {
73
+ console . warn ( 'not support NativeAppEventEmitter now! use @areslabs/wx-eventemitter instead' )
74
+ }
75
+ } ,
76
+ }
77
+
61
78
export {
62
79
WXButton ,
63
80
WXView ,
@@ -103,7 +120,9 @@ export {
103
120
alert ,
104
121
requestAnimationFrame ,
105
122
cancelAnimationFrame ,
106
- unstable_batchedUpdates
123
+ unstable_batchedUpdates ,
124
+ AppState ,
125
+ NativeAppEventEmitter
107
126
}
108
127
109
128
export default {
@@ -152,5 +171,7 @@ export default {
152
171
alert,
153
172
requestAnimationFrame,
154
173
cancelAnimationFrame,
155
- unstable_batchedUpdates
174
+ unstable_batchedUpdates,
175
+ AppState,
176
+ NativeAppEventEmitter
156
177
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @areslabs/wx-react-native" ,
3
- "version" : " 1.0.20 " ,
3
+ "version" : " 1.0.22 " ,
4
4
"description" : " 微信版本的React Native" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments