1<LinearGradient
2 colors={['#4c669f', '#3b5998', '#192f6a']}
3 style={styles.linearGradient}>
4 <Text style={styles.buttonText}>
5 Simple Linear Gradient Backgrount
6 </Text>
7</LinearGradient>
1You may refer to this link:
2https://github.com/react-native-linear-gradient/react-native-linear-gradient
1<button style={{ backgroundImage: `linear-gradient(to right, rgba(0, 224, 255, 1), rgba(0, 133, 255, 1))`, }} >
2