Skip to content

Commit

Permalink
fix 调用下拉刷新不执行
Browse files Browse the repository at this point in the history
  • Loading branch information
jumiao committed Apr 2, 2024
1 parent a48c141 commit edf1a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-runtime-rn/src/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export function createPageConfig (Page: any, pageConfig: PageConfig): any {
dimensionsSubscription: EmitterSubscription | undefined
isPageReady: boolean

constructor (props: any) {
constructor(props: any) {
super(props)
const refreshStyle = globalAny?.__taroRefreshStyle ?? {}
const backgroundTextStyle =
Expand Down Expand Up @@ -291,7 +291,7 @@ export function createPageConfig (Page: any, pageConfig: PageConfig): any {
Current.page = inst
}

pullDownRefresh = (path, refresh) => {
pullDownRefresh = ({ path, refresh }) => {
if (getPageStr(path) === getPageStr(pagePath)) {
this.setState({ refreshing: refresh })
}
Expand Down

0 comments on commit edf1a7b

Please sign in to comment.