Skip to main content

react-native-vroom-chart

Type Aliases

Type AliasDescription
CandleA single OHLCV bar. candles is an array of these.
ChartTypeHow the price series is drawn. 'candles' — default: candlestick bodies + wicks. 'line' — a single polyline through each candle's close. Volume, indicators, overlays, crosshair, and drawings still render.
CrosshairEventPayload passed to onCrosshair as the crosshair shows, moves, or hides.
MACDConfigMACD indicator config. Rendered in its own pane below the candles.
MASourcePrice source for a moving average.
MovingAverageOverlayA moving-average overlay line drawn on the price pane. Provide an array of these via movingAverages to render a ribbon of SMA/EMA lines.
RSIConfigRSI indicator config. Rendered in a pane below the candles when enabled.
VisibleRangeA time window over the candle data, as Unix epoch milliseconds.
VroomChartPropsProps for the VroomChart component. The cross-platform props come from VroomChartCoreProps; style is the React Native flavor.
VroomColorA color value: a hex string ('#0d1117', or 8-digit '#aarrggbb') or a packed ARGB number. In VroomTheme every field is optional — omitted colors keep the library default.
VroomThemeColor overrides for the chart, passed via the theme prop.
VWAPConfigVWAP overlay config (session anchor). Drawn as a single line on the price pane, resetting each session.

Functions

FunctionDescription
VroomChartSkia-rendered candlestick chart. Pass OHLCV candles and size it via style (it fills its parent by default). Pan to scroll, pinch to zoom, drag the price/time axes to rescale, and long-press for the crosshair. Optional indicators (rsi, macd, movingAverages, vwap), colors (theme), and events (onCrosshair, onViewportChange) are configured through props.