Skip to content

fix(rn): 修复 translate3d 不支持 z 值还在透传的问题#2493

Open
dos1in wants to merge 4 commits into
didi:masterfrom
dos1in:fix-translatey
Open

fix(rn): 修复 translate3d 不支持 z 值还在透传的问题#2493
dos1in wants to merge 4 commits into
didi:masterfrom
dos1in:fix-translatey

Conversation

@dos1in

@dos1in dos1in commented May 20, 2026

Copy link
Copy Markdown
Member

translate3d(x, y, z) 和 scale3d(x, y, z) 只转换 X/Y:

第三个 Z 值不再输出到 RN style,避免生成 { translateZ: 0 } / { scaleZ: ... }。

否则上层使用了 translate3d(0, 0, 0) 之类的属性会导致页面白屏。

key !== 'rotate 这个判断也不需要了,case 'rotate' 中已处理。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant