Type Alias: RNPolyline
type RNPolyline = {
color?: string;
coordinates: RNLatLng[];
geodesic?: boolean;
id: string;
lineCap?: RNLineCapType;
lineJoin?: RNLineJoinType;
pressable?: boolean;
width?: number;
zIndex?: number;
};
Polyline definition.
Properties
| Property | Type | Default value | Description |
|---|---|---|---|
color? | string | Line color. | |
coordinates | RNLatLng[] | Polyline vertices. See RNLatLng[]. | |
geodesic? | boolean | false | Draws a geodesic path. |
id | string | Unique polyline identifier. | |
lineCap? | RNLineCapType | 'butt' See RNLineCapType. | Line cap style. |
lineJoin? | RNLineJoinType | 'miter' See RNLineJoinType. | Line join style. |
pressable? | boolean | false | Enables polyline press events. |
width? | number | Line width in logical units. iOS: points (pt) Android: density-independent pixels (dp) Converted internally to physical pixels. | |
zIndex? | number | 0 | Z-index used for rendering order. |