Skip to content

Commit edf1a7b

Browse files
author
jumiao
committed
fix 调用下拉刷新不执行
1 parent a48c141 commit edf1a7b

File tree

1 file changed

+2
-2
lines changed
  • packages/taro-runtime-rn/src

1 file changed

+2
-2
lines changed

packages/taro-runtime-rn/src/page.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export function createPageConfig (Page: any, pageConfig: PageConfig): any {
138138
dimensionsSubscription: EmitterSubscription | undefined
139139
isPageReady: boolean
140140

141-
constructor (props: any) {
141+
constructor(props: any) {
142142
super(props)
143143
const refreshStyle = globalAny?.__taroRefreshStyle ?? {}
144144
const backgroundTextStyle =
@@ -291,7 +291,7 @@ export function createPageConfig (Page: any, pageConfig: PageConfig): any {
291291
Current.page = inst
292292
}
293293

294-
pullDownRefresh = (path, refresh) => {
294+
pullDownRefresh = ({ path, refresh }) => {
295295
if (getPageStr(path) === getPageStr(pagePath)) {
296296
this.setState({ refreshing: refresh })
297297
}

0 commit comments

Comments
 (0)