Skip to content

Commit

Permalink
fix(*): remove extendObject.
Browse files Browse the repository at this point in the history
  • Loading branch information
shangqunfeng committed Dec 19, 2024
1 parent 53813f1 commit 9fdda88
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ const _RichText = forwardRef<HandlerRef<View, _RichTextProps>, _RichTextProps>((

const html: string = typeof nodes === 'string' ? nodes : jsonToHtmlStr(nodes)

return createElement(View, extendObject(innerProps),
createElement(WebView, extendObject({
return createElement(View, innerProps,
createElement(WebView, {
source: { html: generateHTML(html) },
onMessage: (event: WebViewMessageEvent) => {
setWebViewHeight(+event.nativeEvent.data)
}
}))
})
)
})

Expand Down

0 comments on commit 9fdda88

Please sign in to comment.