how to use linear gradient as background in react native code example
Example 1: linear gradient react js
<LinearGradient
colors={['#4c669f', '#3b5998', '#192f6a']}
style={styles.linearGradient}>
<Text style={styles.buttonText}>
Simple Linear Gradient Backgrount
</Text>
</LinearGradient>
Example 2: react native linear gradient
yarn add react-native-linear-gradient