react-native-linear-gradient-degree
Transform css linear-gradient degree to start and end coordinates
in react-native-linear-gradient or expo-linear-gradient
Usage
Add it to your project
npm install react-native-linear-gradient-degree --save
Get coordinates from css linear-gradient degree
For example, css background:
) 0%,) 100%);
;;;; ; console.logdeg240 // {"start":{"x":1,"y":0.7886751345948129},"end":{"x":0,"y":0.21132486540518713}}
License
MIT