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
react-native-linear-gradient
A <LinearGradient> element for React Native
expo-linear-gradient
Provides a React component that renders a gradient view.
react-native-web-linear-gradient
React Native for Web implementation of react-native-linear-gradient
postcss-double-position-gradients
Use double-position gradients in CSS
npm install react-native-linear-gradient-degree
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
3 Stars
3 Commits
2 Forks
2 Watching
7 Branches
1 Contributors
Updated on 23 Nov 2022
TypeScript (73.47%)
JavaScript (26.53%)
Cumulative downloads
Total Downloads
Last day
75.5%
165
Compared to previous day
Last week
27.7%
674
Compared to previous week
Last month
10.3%
2,682
Compared to previous month
Last year
-72%
25,931
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
90 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
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