
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
react-native-linear-gradient-text
Advanced tools
Component to display text with linear gradient.
Component to display text with linear gradient
Make sure that you have installed the @react-native-masked-view/masked-view
library:
Make sure that you have installed the react-native-linear-gradient
library:
yarn add react-native-linear-gradient-text
# or
npm install react-native-linear-gradient-text
import React from 'react';
import { View, StyleSheet } from 'react-native';
import { LinearGradientText } from 'react-native-linear-gradient-text';
export const App = () => {
return (
<View style={styles.container}>
<LinearGradientText
colors={['#E76F00', '#EA374E']}
text="Hello World"
start={{ x: 0.5, y: 0 }} // Optional
end={{ x: 1, y: 1 }} // Optional
textStyle={{ fontSize: 40 }} // Optional
textProps={{ allowFontScaling: true }} // Optional
/>
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
});
Prop | Type | Default | Description |
---|---|---|---|
text | string | Required | An string that display text. Example: text="Hello World" |
colors | string[] | Required | An array of at least two color values that represent gradient colors. Example: colors={["black", "white"]} . |
start | { x: number, y: number } | { x: 0.5, y: 0 } | An optional prop. He declare the position that the gradient starts. Example start={{ x: 0.5, y: 0 }} . |
end | { x: number, y: number } | { x: 1, y: 1 } | Same as start, but for the of the gradient. |
textStyle | TextStyle | Default Value | A property to change all styles that a text has. |
textProps | TextProps | Default Value | A property to apply native props to text. |
This project is under the MIT license. See the LICENSE to learn more.
Contact!
FAQs
Component to display text with linear gradient.
The npm package react-native-linear-gradient-text receives a total of 118 weekly downloads. As such, react-native-linear-gradient-text popularity was classified as not popular.
We found that react-native-linear-gradient-text demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.