Gathering detailed insights and metrics for react-native-text-gradient
Gathering detailed insights and metrics for react-native-text-gradient
Gathering detailed insights and metrics for react-native-text-gradient
Gathering detailed insights and metrics for react-native-text-gradient
react-native-linear-gradient-text
Component to display text with linear gradient.
@react-native-oh-tpl/react-native-text-gradient
Text gradient for React-Native
react-native-gradient-texts
React Native component for different Gradient styled Texts for iOS & Android.
react-native-text-plus
react-native-text-plus
npm install react-native-text-gradient
Typescript
Module System
Node Version
NPM Version
Java (38.79%)
Objective-C (36.65%)
JavaScript (19.66%)
Starlark (3.47%)
Ruby (0.98%)
Dockerfile (0.46%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
98 Stars
155 Commits
32 Forks
2 Watchers
14 Branches
5 Contributors
Updated on Dec 09, 2024
Latest Version
0.1.7
Package Id
react-native-text-gradient@0.1.7
Unpacked Size
1.05 MB
Size
689.63 kB
File Count
114
NPM Version
6.11.2
Node Version
10.16.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
React-Native text gradient component for iOS & Android.
$ npm install react-native-text-gradient --save
$ react-native link react-native-text-gradient
If you are using Cocoapods you need to follow the manual installation guide.
Text
component and it is possible to have nested gradients.1import { LinearTextGradient } from "react-native-text-gradient"; 2 3<LinearTextGradient 4 style={{ fontWeight: "bold", fontSize: 72 }} 5 locations={[0, 1]} 6 colors={["red", "blue"]} 7 start={{ x: 0, y: 0 }} 8 end={{ x: 1, y: 0 }} 9> 10 THIS IS TEXT GRADIENT 11</LinearTextGradient>;
iOS | Android |
---|---|
![]() | ![]() |
Interface is similar to Text
& LinearGradient
An array of at least two color values that represent gradient colors. Example: ['red', 'blue']
sets gradient from red to blue.
An optional object of the following type: { x: number, y: number }
. Coordinates declare the position that the gradient starts at, as a fraction of the overall size of the gradient, starting from the top left corner. Example: { x: 0.1, y: 0.1 }
means that the gradient will start 10% from the top and 10% from the left.
Same as start, but for the end of the gradient.
An optional array of numbers defining the location of each gradient color stop, mapping to the color with the same index in colors
prop. Example: [0.1, 0.75, 1]
means that first color will take 0% - 10%, second color will take 10% - 75% and finally third color will occupy 75% - 100%.
Optional. If true gradient will be calculated for text view background frame rather than text frame.
1<LinearTextGradient 2 numberOfLines={1} 3 useViewFrame={true} 4 locations={[0.5, 0.95]} 5 // note colors like '#FF000000' are used for seamless transition to transparent 6 colors={["#FF0000", "#FF000000"]} 7 start={{ x: 0, y: 0 }} 8 end={{ x: 1, y: 0 }} 9> 10 %%%%%%%%%%%%%%%%%%%%%% 11</LinearTextGradient>
Wait until https://github.com/facebook/react/pull/13211 will be merged or patch react-native to remove failing invariant checks
$ node node_modules/react-native-text-gradient/patch-rn.js
When mixing several text gradients and Text
s top component always should be text gradient.
1<LinearTextGradient {...someGradientProps}> 2 <Text>123</Text> 3 qwerty 4 <LinearTextGradient {...anotherGradientProps}>321</LinearTextGradient> 5</LinearTextGradient>
This is necessary because only top text component is 'mapped' to actual native node and its children are 'virtual' from the native perspective.
No vulnerabilities found.
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 2/24 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 effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
54 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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