All Projects β†’ heineiuo β†’ React Native Animated Linear Gradient

heineiuo / React Native Animated Linear Gradient

Animated linear gradient as background animation or something else.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Native Animated Linear Gradient

Tagger
Zero Dependency, Vanilla JavaScript Tag Editor
Stars: ✭ 135 (-11.76%)
Mutual labels:  component
Fluentvalidation.blazor
Fluent Validation-powered Blazor component for validating standard <EditForm> 🌌 βœ…
Stars: ✭ 140 (-8.5%)
Mutual labels:  component
React Svg Map
A set of React.js components to display an interactive SVG map
Stars: ✭ 150 (-1.96%)
Mutual labels:  component
React Osx Dock
React component that is magnifiable like the Mac OS X dock.
Stars: ✭ 136 (-11.11%)
Mutual labels:  component
Vue Social Share
A Vue 2.x social share component
Stars: ✭ 136 (-11.11%)
Mutual labels:  component
Bekcurvetabbar
Full Customizable Tabbar with IBInspectables
Stars: ✭ 144 (-5.88%)
Mutual labels:  component
Redux Tooltip
A tooltip React component for Redux.
Stars: ✭ 134 (-12.42%)
Mutual labels:  component
Go Sdk
Dapr SDK for go
Stars: ✭ 149 (-2.61%)
Mutual labels:  component
React Step Progress Bar
A library to create stunning progress bars and steps in React 🌑
Stars: ✭ 140 (-8.5%)
Mutual labels:  component
React Use Clipboard
React hook that provides copy to clipboard functionality.
Stars: ✭ 149 (-2.61%)
Mutual labels:  component
React Native Modalize
A highly customizable modal/bottom sheet that loves scrolling content.
Stars: ✭ 2,119 (+1284.97%)
Mutual labels:  component
Esp Azure
SDK to connect ESP8266 and ESP32 to Microsoft Azure IoT services
Stars: ✭ 137 (-10.46%)
Mutual labels:  component
Vue Plain Slider
A simple slider component for Vue.js
Stars: ✭ 146 (-4.58%)
Mutual labels:  component
Zarm Web
基于 React ηš„ζ‘Œι’η«―UIη»„δ»ΆεΊ“
Stars: ✭ 135 (-11.76%)
Mutual labels:  component
React Intense
A React component for viewing large images up close πŸ”
Stars: ✭ 152 (-0.65%)
Mutual labels:  component
Aura.filter
Validate and sanitize arrays and objects.
Stars: ✭ 134 (-12.42%)
Mutual labels:  component
React Native Wormhole
βš›οΈ 🌌 Inter-dimensional Portals for React Native. πŸ‘½ πŸ––
Stars: ✭ 133 (-13.07%)
Mutual labels:  component
React Axios
Axios Components for React with child function callback
Stars: ✭ 153 (+0%)
Mutual labels:  component
Vue Table
data table simplify! -- vuetable is a Vue.js component that will automatically request (JSON) data from the server and display them nicely in html table with swappable/extensible pagination component.
Stars: ✭ 1,833 (+1098.04%)
Mutual labels:  component
Scrollprogress
πŸ›Έ Light weight library to observe the viewport scroll position
Stars: ✭ 148 (-3.27%)
Mutual labels:  component

react-native-animated-linear-gradient

Animated linear gradient as background animation or other.

Example


Install

  1. install react-native-linear-gradient, run npm install react-native-linear-gradient --save
  2. run react-native link react-native-linear-gradient
  3. run npm install react-native-animated-linear-gradient --save

Use

import React, { Component } from 'react';
import { AppRegistry, Text } from 'react-native';
import AnimatedLinearGradient, {presetColors} from 'react-native-animated-linear-gradient'

class HelloWorldApp extends Component {
  render() {
    return (
      <AnimatedLinearGradient customColors={presetColors.instagram} speed={4000}/>
    );
  }
}

AppRegistry.registerComponent('HelloWorldApp', () => HelloWorldApp);

Props

  1. customColors A colors array. This package has include some preset colors, default is presetColors.instagram:
export presetColors = {
  instagram: [
    'rgb(106, 57, 171)',
    'rgb(151, 52, 160)',
    'rgb(197, 57, 92)',
    'rgb(231, 166, 73)',
    'rgb(181, 70, 92)'
  ],
  firefox: [
    'rgb(236, 190, 55)',
    'rgb(215, 110, 51)',
    'rgb(181, 63, 49)',
    'rgb(192, 71, 45)',
  ],
  sunrise: [
    'rgb(92, 160, 186)',
    'rgb(106, 166, 186)',
    'rgb(142, 191, 186)',
    'rgb(172, 211, 186)',
    'rgb(239, 235, 186)',
    'rgb(212, 222, 206)',
    'rgb(187, 216, 200)',
    'rgb(152, 197, 190)',
    'rgb(100, 173, 186)',
  ]
};
  1. speed The speed of the animation. default is 4000.

  2. points (experimental) Describe the direction of linear gradient with start point and end point see more

Default:

const DEFAULT_POINTS = {
  start: {x: 0, y: 0.4}, 
  end: {x: 1, y: 0.6}
}

Example:

vertical:

<AnimatedLinearGradient points={{start: {x: 0.5, y: 0}, end: {x: 0.5, y: 1}}}/>

You can find out it is static values, no animate here :( . This points is going to be animateable soon :) .

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].