Interfaces

PaintProps

Paint attributes shared by every drawing component, <Group>, and <Paint>.

Extended by

Properties

antiAlias?

optional antiAlias?: boolean;

blendMode?

optional blendMode?: BlendMode;

How this drawing composites onto what is already there. 'srcOver' by default.


children?

optional children?: ReactNode;

color?

optional color?: Animated<Color>;

opacity?

optional opacity?: Animated<number>;

Paint-wide alpha multiplier in [0, 1]; only one per chain can animate.


ref?

optional ref?: NodeHandle;

A handle from useNode(), for changing this node without a React render. See NodeHandle.


strokeCap?

optional strokeCap?: "butt" | "round" | "square";

strokeJoin?

optional strokeJoin?: "round" | "miter" | "bevel";

strokeMiter?

optional strokeMiter?: Animated<number>;

Past this length-over-width ratio a 'miter' join falls back to bevel. Defaults to 4.


strokeWidth?

optional strokeWidth?: Animated<number>;

style?

optional style?: "fill" | "stroke";

'fill' (default) or 'stroke'.


visible?

optional visible?: Animated<number | boolean>;

Skip drawing (and hit-testing) this node. A value slot, so a handle or a SharedValue toggles it with no re-encode - the supported way to pool mounted nodes for particle systems and variable-count scenes.