From 352aeb1a738f4d985aff5c2b9d96be5963ad129b Mon Sep 17 00:00:00 2001 From: tony chen Date: Wed, 6 Nov 2024 19:03:35 +0800 Subject: [PATCH] fix(rn): undefinde error --- packages/taro-runtime-rn/src/app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/taro-runtime-rn/src/app.tsx b/packages/taro-runtime-rn/src/app.tsx index a23b7b593790..5dd1d278a149 100644 --- a/packages/taro-runtime-rn/src/app.tsx +++ b/packages/taro-runtime-rn/src/app.tsx @@ -12,7 +12,7 @@ import { HOOKS_APP_ID, isFunction } from './utils' export function isClassComponent (component): boolean { return ( - isFunction(component?.render) || !!component.prototype?.isReactComponent || component.prototype instanceof Component + isFunction(component?.render) || !!component?.prototype?.isReactComponent || component?.prototype instanceof Component ) }