From edf1a7bc1e6e15c8c888512f3904e90f302b627f Mon Sep 17 00:00:00 2001 From: jumiao Date: Tue, 2 Apr 2024 10:02:01 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=B0=83=E7=94=A8=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E4=B8=8D=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-runtime-rn/src/page.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/taro-runtime-rn/src/page.ts b/packages/taro-runtime-rn/src/page.ts index 4c3303da26b7..73a9758bd12c 100644 --- a/packages/taro-runtime-rn/src/page.ts +++ b/packages/taro-runtime-rn/src/page.ts @@ -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 = @@ -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 }) }