mirror of
https://github.com/status-im/react-native-linear-gradient.git
synced 2026-08-30 22:01:13 +00:00
Use CLAMP instead of MIRROR
This matches the behavior on iOS where the gradient’s edge color is extended if the view’s bounds exceed the gradient positions.
This commit is contained in:
@@ -90,7 +90,7 @@ public class LinearGradientView extends View {
|
||||
mEndPos[1] * mSize[1],
|
||||
mColors,
|
||||
mLocations,
|
||||
Shader.TileMode.MIRROR);
|
||||
Shader.TileMode.CLAMP);
|
||||
mPaint.setShader(mShader);
|
||||
invalidate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user