diff --git a/README.md b/README.md index 2ce7287..a2126fb 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,15 @@ yarn add react-native-graph ## Usage ```tsx -import { LineGraph } from 'react-native-graph'; +import { LineGraph, type GraphPoint } from 'react-native-graph'; -function App() { - const priceHistory = usePriceHistory('ethereum'); +const priceHistory: GraphPoint[] = [ + { date: new Date('2026-08-27T00:00:00Z'), value: 3.44 }, + { date: new Date('2026-08-28T00:00:00Z'), value: 3.51 }, + { date: new Date('2026-08-29T00:00:00Z'), value: 3.49 }, +]; +function App() { return (