Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-content-load

Crayonn22MIT0.0.6

react native

react, react native, react-native, linear gradient, loading, background

readme

React Native Content Load

Example


install

  1. yarn add react-native-linear-gradient react-native-content-load

    or

    npm install react-native-linear-gradient react-native-content-load

  2. react-native link react-native-linear-gradient

Use

import LoadWarpper from 'react-native-content-load';

<LoadWarpper>
  {Component}
</LoadWarpper>

Props

name type default description
color Object {first:['#CCC', '#F1F1F1', '#CCC'],second:['#F1F1F1', '#CCC', '#CCC']} isRequired
startX number || array 0 number -> no animation; array -> animation with startX
startY number || array 0.4 number -> no animation; array -> animation with startY
endX number || array 1 number -> no animation; array -> animation with endX
endY number || array 0.6 number -> no animation; array -> animation with endY
isLoop boolean true
speed number 3000

License

MIT