Convert a CSS linear gradient function to expo-linear-gradient props
npm install @bacons/css-to-expo-linear-gradient> Demo: snack
Convert a CSS linear gradient function to expo-linear-gradient props.
```
yarn add @bacons/css-to-expo-linear-gradient
`tsx
import { fromCSS } from "@bacons/css-to-expo-linear-gradient";
import { LinearGradient } from "expo-linear-gradient";
function App() {
return (
linear-gradient(0deg, #ff008450 0%, #fca40040 25%, #ffff0030 40%, #00ff8a20 60%, #00cfff40 75%, #cc4cfa50 100%);``
)}
/>
);
}
Most of the code is adapted from this project which converts CSS linear gradients to canvas gradients.