showing results for - "expo linear gradient"
Cameron
12 Feb 2018
1import * as React from 'react';
2import { StyleSheet, Text, View } from 'react-native';
3import { LinearGradient } from 'expo-linear-gradient';
4
5export default function App() {
6  return (
7    <View style={styles.container}>
8      <LinearGradient
9        // Background Linear Gradient
10        colors={['rgba(0,0,0,0.8)', 'transparent']}
11        style={styles.background}
12      />
13      <LinearGradient
14        // Button Linear Gradient
15        colors={['#4c669f', '#3b5998', '#192f6a']}
16        style={styles.button}>
17        <Text style={styles.text}>Sign in with Facebook</Text>
18      </LinearGradient>
19    </View>
20  );
21}
22
23%%placeholder-start%%const styles = StyleSheet.create({ ... }); %%placeholder-end%%const styles = StyleSheet.create({
24  container: {
25    flex: 1,
26    alignItems: 'center',
27    justifyContent: 'center',
28    backgroundColor: 'orange',
29  },
30  background: {
31    position: 'absolute',
32    left: 0,
33    right: 0,
34    top: 0,
35    height: 300,
36  },
37  button: {
38    padding: 15,
39    alignItems: 'center',
40    borderRadius: 5,
41  },
42  text: {
43    backgroundColor: 'transparent',
44    fontSize: 15,
45    color: '#fff',
46  },
47});
48
queries leading to this page
expo linear gradient npmiexpo linear gradient ditheringexpo react native linear gradientlinear gradient react native expo examplereact native radial gradient background expoexpo linear gradient startnpm expo linear gradienthow to use conic gradients in expoimport 7b lineargradient 7d from 22expo linear gradient 22 3bexpo linear gradient examplelineargradient expoexpo linear gradient 40unimodulesexpo linear gradient react native startinstall expo linear gradientexpo linear gradient radialexpo linear gradient for backgroundexpo linear gradient npmimport expo linear gradientreact native linear gradient expohow to use expo linear gradientreact native linear gradient expo issueradial gradient expogradient expogradient react native expolinear gradinet exporeact native linear gradient expohow to make perfect gradient in expodoes expo linear gradientlinear gradient expo react nativehow to install expo linear gradientexpo linear gradient 2290degree 22expo linear gradient bottom to tophow to create a horizontal gradient using lineargradient expo linear gradientexpo linear gradientlinear gradient expoexpo linear gradient npmexpo linear gradient angleexpo radial gradientgradient background color in react nativeexpo linear gradient textbackground gradient react native expoexpo linear gradient horizontalhow to import react native linear gradient in expoexpo linear gradient directionexpo linear gradient anglelinear gradient react native expo overlayreact native linear gradient for expoexpo linear gradientexpo lineargradientlinear gradient background expohorizontal gradient with expo linear gradientchange expo linear gradient directionsgradient in expo tutoriallinear gradient in react native expo greeexpo install expo linear gradient npmgradient color for react nativeexpo gradient backgroundexpo linear gradient text expo react native linear gradientexpo linear gradient nom ireact native expo linear gradient for backgroundexpo gradientexpo linear gradient looks poor on androidexpo linear gradient stateless componentexpo linear gradient sizeexpo linear gradient start endexpo gradiantlinear gradient react native expogradient background react native expolinea gradient expoexpo linear gradient 90 90degreeexpo linear gradient for scrollexpo react native linear gradientexpo linear gradient horizontalreact native gradientgradient in react native expoexpo linear gradient verticalexpo linear gradient percentageexpo linear gradient react nativeexpo linear gradient 90degreelinear gradient in react native exporeact native expo linear gradientuse gradient background react native expoexpo linear gradient left to rightexpo install expo linear gradientexpo linear gradient on the whole pagehow to use gradients as background in expolinear gradient in expoexpo background gradientexpo linear gradient reacthow to use gradients in expoexpo cli linear gradient backgroundlineargradient expo linear gradientlocation props in linear gradient expoexpo linear gradient examplesexpo linear gradient 45degexpo linear gradient yarnimport 7b lineargradient 7d from 27expo linear gradient 27 3blinear gradient react native expolinear gradient react native expoexpo linear gradient