Skip to main content

Platform differences

The data, indicator, theme, and event types — Candle, CrosshairEvent, VroomTheme, RSIConfig, MACDConfig, MovingAverageOverlay, VWAPConfig, VisibleRange, and the onCrosshair / onViewportChange callbacks — are identical across both packages. They're defined once and shared, so everything in the API reference applies to both platforms.

The only prop that differs is style, plus a few web-only props. The generated VroomChartProps reference reflects the React Native package; the deltas are:

type VroomChartProps = VroomChartCoreProps & {
/** Style for the chart's root view. Defaults to filling the parent. */
style?: StyleProp<ViewStyle>;
};

style is a React Native ViewStyle. There are no other native-only props.

Everything else — candles, visibleRange, defaultCandleWidth, theme, rsi, macd, movingAverages, vwap, crosshairOffset, crosshairOverride, width/height, and both event callbacks — is shared (VroomChartCoreProps) and behaves identically on both platforms. That includes the full theme surface, so the newer styling fields (wickWidth, candleRadius, wickRoundCap, volumeRadius) and defaultCandleWidth work the same way on web and React Native.

Web-only overlays

Two props are declared on VroomChartCoreProps (so they type-check everywhere) but currently render on web only — React Native parity is planned:

  • liquidity — resting-order / L2 liquidity bands overlaid on the price pane.
  • drawings — trendline drawings.

On React Native these props are accepted but have no visual effect yet.