Skip to content

Commit

Permalink
feat(vue): fix default native style is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
zealotchen0 committed Aug 26, 2024
1 parent 3fc7225 commit 8d51296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/js/packages/hippy-vue/src/native/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ function renderToNative(rootViewId, targetNode, refInfo = {}, notUpdateStyle = f
// use defaultNativeStyle later to avoid incorrect compute style from inherit node
// in beforeRenderToNative hook
if (targetNode.meta.component.defaultNativeStyle) {
style = { ...targetNode.meta.component.defaultNativeStyle, ...resultStyle };
resultStyle = { ...targetNode.meta.component.defaultNativeStyle, ...resultStyle };
}
}
// Translate to native node
Expand Down

0 comments on commit 8d51296

Please sign in to comment.