Interfaces

LinearGradientProps

Extends

  • GradientStops

Properties

colors

colors: Color[];

Stop colours. An entry given as [r, g, b, a] components with a SharedValue channel animates; a handle's set({ colors }) patches them all.

Inherited from

GradientStops.colors

end

end: AnimatedVector;

positions?

optional positions?: Animated<number>[];

Stop offsets in 0..1. Animatable - each is a value slot when live.

Inherited from

GradientStops.positions

ref?

optional ref?: NodeHandle;

A handle from useNode(), for patching this gradient without a render.

Inherited from

GradientStops.ref

start

start: AnimatedVector;

On this page