Gathering detailed insights and metrics for react-native-linear-gradient-degree
Gathering detailed insights and metrics for react-native-linear-gradient-degree
Gathering detailed insights and metrics for react-native-linear-gradient-degree
Gathering detailed insights and metrics for react-native-linear-gradient-degree
Transform css linear-gradient degree to start and end coordinates in react-native-linear-gradient or expo-linear-gradient
npm install react-native-linear-gradient-degree
Typescript
Module System
Node Version
NPM Version
69
Supply Chain
79.3
Quality
75
Maintenance
100
Vulnerability
100
License
TypeScript (73.47%)
JavaScript (26.53%)
Total Downloads
216,191
Last Day
21
Last Week
495
Last Month
2,595
Last Year
32,534
4 Stars
3 Commits
2 Forks
1 Watchers
7 Branches
1 Contributors
Updated on Dec 02, 2024
Latest Version
0.0.1
Package Id
react-native-linear-gradient-degree@0.0.1
Unpacked Size
20.49 kB
Size
5.58 kB
File Count
7
NPM Version
6.14.4
Node Version
12.14.1
Cumulative downloads
Total Downloads
Last Day
-78.6%
21
Compared to previous day
Last Week
14.1%
495
Compared to previous week
Last Month
-16.4%
2,595
Compared to previous month
Last Year
-12.8%
32,534
Compared to previous year
Transform css linear-gradient degree to start and end coordinates
in react-native-linear-gradient or expo-linear-gradient
1npm install react-native-linear-gradient-degree --save
For example, css background:
1background : linear-gradient(240deg,rgba(43,156,225,1) 0%,rgba(46,137,193,1) 100%);
1import * as React from 'react'; 2import { Text, View } from 'react-native'; 3import { LinearGradient } from 'expo-linear-gradient'; 4import { deg } from 'react-native-linear-gradient-degree'; 5 6export const App: React.FunctionComponent = function App(props) { 7 return ( 8 <View style={{ marginTop: 200 }}> 9 <LinearGradient colors={["rgba(43,156,225,1)", "rgba(46,137,193,1)"]} {...deg(240)}> 10 <Text style={{ height: 50, width: 200 }}>apply</Text> 11 </LinearGradient> 12 </View> 13 ); 14}; 15 16console.log(deg(240)) // {"start":{"x":1,"y":0.7886751345948129},"end":{"x":0,"y":0.21132486540518713}}
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/3 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
100 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More