SHARE
TWEET

Untitled

a guest Feb 18th, 2020 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <LinearGradient
  2.         colors={['blue', 'green', 'red', 'yellow']}
  3.         style={{flex: 1}}
  4.         //  Linear Gradient
  5.         start={{ x: 0, y: 0 }}
  6.         end={{ x: 0, y: 1 }}
  7.  
  8.         // Linear Gradient Reversed
  9.         // start={{ x: 0, y: 1 }}
  10.         // end={{ x: 1, y: 0 }}
  11.  
  12.         // Horizontal Gradient
  13.         // start={{ x: 0, y: 0 }}
  14.         // end={{ x: 1, y: 0 }}
  15.  
  16.         // Diagonal Gradient
  17.         // start={{ x: 0, y: 0 }}
  18.         // end={{ x: 1, y: 1 }}
  19.       >
  20.         <Text style={styles.text}>Hello World</Text>
  21.       </LinearGradient>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top