Skip to content

Conversation

@wangshunnn
Copy link
Collaborator

Fix(RN)

  • 修复设置 RN View 组件的渐变色可能不生效的 bad case,background-size 手动设置具体值:
<view class="box"></view>

.box{
  width: 100px;
  height: 100px;
  background-image: linear-gradient(rgba(247, 248, 250, 0.95), rgba(247, 248, 250, 0.95))
  background-size: 100px 100px;
}

@wangshunnn wangshunnn added the platform:RN Mpx 跨端输出 RN label Nov 26, 2025
// 数值类型设置为 stretch
imageProps.resizeMode = 'stretch'
if (type === 'linear' && (!layoutWidth || !layoutHeight)) {
if (type === 'linear' && (!layoutWidth || !layoutHeight) && isNeedLayout(preImageInfo)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个和闫宇对过么,具体遇到的问题是啥

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

和闫宇、群峰确认过

@hiyuki hiyuki merged commit 14aa457 into master Dec 31, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform:RN Mpx 跨端输出 RN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants