Skip to content

Commit

Permalink
Merge pull request #1673 from didi/feat-liner-gradient
Browse files Browse the repository at this point in the history
fix(view): fix background fill.
  • Loading branch information
hiyuki authored Oct 24, 2024
2 parents 366dff7 + a2a3a51 commit 044f197
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ function wrapImage (imageStyle?: ExtendedViewStyle) {
}
}

return <View key='backgroundImage' {...needLayout ? { onLayout } : null} style={{ ...StyleSheet.absoluteFillObject, width: '100%', height: '100%', overflow: 'hidden' }}>
return <View key='backgroundImage' {...needLayout ? { onLayout } : null} style={{ ...StyleSheet.absoluteFillObject, overflow: 'hidden' }}>
{show && type === 'linear' && <LinearGradient useAngle={true} {...imageStyleToProps(preImageInfo, sizeInfo.current as Size, layoutInfo.current as Size)} /> }
{show && type === 'image' && <Image {...imageStyleToProps(preImageInfo, sizeInfo.current as Size, layoutInfo.current as Size)} />}
</View>
Expand Down

0 comments on commit 044f197

Please sign in to comment.