How to use expo-linear-gradient - 2 common examples

To help you get started, we’ve selected a few expo-linear-gradient examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo / packages / expo / src / deprecated.ts View on Github external
get() {
      deprecatedModule(
        `import { LinearGradient } from 'expo' -> import { LinearGradient } from 'expo-linear-gradient'`,
        'expo-linear-gradient'
      );
      return require('expo-linear-gradient').LinearGradient;
    },
  },
github expo / expo / packages / expo / src / globals.ts View on Github external
get() {
      return require('expo-linear-gradient').LinearGradient;
    },
  },

expo-linear-gradient

Provides a React component that renders a gradient view.

MIT
Latest version published 27 days ago

Package Health Score

95 / 100
Full package analysis

Popular expo-linear-gradient functions