Skip to content

Commit fc02117

Browse files
committed
feat(wx-react-native): react-native add unstable_batchedUpdates api
1 parent dfbac12 commit fc02117

File tree

1 file changed

+6
-3
lines changed
  • packages/wx-react-native/miniprogram_dist

1 file changed

+6
-3
lines changed

packages/wx-react-native/miniprogram_dist/index.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* LICENSE file in the root directory of this source tree.
66
*
77
*/
8-
8+
import {unstable_batchedUpdates} from '@areslabs/wx-react'
9+
910
import WXFlatList from './component/WXFlatList/index.comp'
1011
import WXSectionList from './component/WXSectionList/index.comp'
1112
import WXScrollView from './component/WXScrollView/index.comp'
@@ -101,7 +102,8 @@ export {
101102
fetch,
102103
alert,
103104
requestAnimationFrame,
104-
cancelAnimationFrame
105+
cancelAnimationFrame,
106+
unstable_batchedUpdates
105107
}
106108

107109
export default {
@@ -149,5 +151,6 @@ export default {
149151
fetch,
150152
alert,
151153
requestAnimationFrame,
152-
cancelAnimationFrame
154+
cancelAnimationFrame,
155+
unstable_batchedUpdates
153156
}

0 commit comments

Comments
 (0)