Skip to content

Commit

Permalink
fix(rn): undefinde error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqingchen committed Nov 6, 2024
1 parent 7519a93 commit 352aeb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-runtime-rn/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}

Expand Down

0 comments on commit 352aeb1

Please sign in to comment.