react-native-stock-graphs
Version:
High-performance, interactive stock charts for React Native with TypeScript support
58 lines • 2.5 kB
TypeScript
export { StockGraph as default, StockGraph } from './components/StockGraph';
export type { CandleData, LineData, ChartType, RenderBackend, IndicatorConfig, SMAConfig, EMAConfig, BollingerConfig, VolumeConfig, RealtimeConfig, DateRange, ChartTheme, GestureConfig, TooltipData, CrosshairData, ChartDimensions, AxisConfig, PerformanceConfig, StockGraphProps, UseRealtimeFeedReturn, UseIndicatorReturn, CalculatedIndicator, ChartState, StockGraphError } from './types';
export { calculateSMA, calculateEMA, calculateBollingerBands, calculateRSI, calculateVWAP, calculateATR, calculateMACD, normalizeIndicatorData, getIndicatorCalculator } from './utils/indicators';
export { timeToX, priceToY, xToTime, yToPrice, getTimeRange, getPriceRange, getValueRange, filterDataByRange, decimateData, findNearestDataPoint, generateTicks, formatPrice, formatTime, calculateVisibleRange, clamp, lerp, distance, throttle, debounce } from './utils/chart';
export { useIndicators, useIndicator, useRSI, useVWAP, useATR } from './hooks/useIndicators';
export { useRealtimeData, useRealtimeFeed, useWebSocketFeed, useSSEFeed } from './hooks/useRealtimeData';
export { useGestures, getDistance, getCenter, isPinchGesture, isPanGesture } from './hooks/useGestures';
export { SVGRenderer } from './components/renderers/SVGRenderer';
export { SkiaRenderer } from './components/renderers/SkiaRenderer';
export { isCandleData, isLineData } from './types';
export declare const DEFAULT_THEME: {
background: string;
gridColor: string;
textColor: string;
candleUp: string;
candleDown: string;
lineColor: string;
areaGradient: {
start: string;
end: string;
};
crosshairColor: string;
tooltipBackground: string;
tooltipText: string;
};
export declare const DEFAULT_DARK_THEME: {
background: string;
gridColor: string;
textColor: string;
candleUp: string;
candleDown: string;
lineColor: string;
areaGradient: {
start: string;
end: string;
};
crosshairColor: string;
tooltipBackground: string;
tooltipText: string;
};
export declare const CHART_TYPES: {
LINE: "line";
AREA: "area";
CANDLESTICK: "candlestick";
OHLC: "ohlc";
};
export declare const RENDER_BACKENDS: {
SVG: "svg";
SKIA: "skia";
};
export declare const INDICATOR_TYPES: {
SMA: "sma";
EMA: "ema";
BOLLINGER: "bollinger";
VOLUME: "volume";
};
export declare const VERSION = "1.0.0";
//# sourceMappingURL=index.d.ts.map