margelo/react-native-graph — reverse-engineered prompt
Reverse engineered prompt
Build me a React Native TypeScript library for beautiful line graphs, mainly for wallet or crypto style price history screens.
I want a reusable LineGraph component that takes an array of date and value points and draws a smooth, fast chart using Skia. It should support animated changes when the data updates, and also have a lighter non animated mode for showing lots of small charts in a list. Add a press and drag gesture so users can scrub across the graph, select points, and update labels outside the graph while they move their finger.
Please include support for custom colors, fixed x and y ranges, top and bottom axis labels for things like max and min values, and a customizable selection dot. Make it feel smooth and native, without making scrolling or navigation lag.
Also build a simple example app that shows a crypto price chart with fake data and demonstrates all the main options. Look up current docs online if you need to.
Want more depth? Deep Reverse