0.2.0 • Published 4 years ago

react-native-animated-component v0.2.0

Weekly downloads
18
License
MIT
Repository
github
Last release
4 years ago

Battle Tested ✅

Animate any components with React Native Animated Component

npm version npm Platform - Android and iOS License: MIT styled with prettier

Add the dependency:

npm i react-native-animated-component

Peer Dependencies

Zero Dependencies

Usage

Import

import RNAnimated from "react-native-animated-component";

Fundamental Usage

<RNAnimated
  appearFrom="left"
  animationDuration={1300}
  style={{ alignItems: "center" }}
>
  {staticData.map(() => renderItem())}
</RNAnimated>

Example Project 😍

You can checkout the example project 🥰

Simply run

  • npm i
  • react-native run-ios/android

should work of the example project.

Configuration - Props

Fundamentals

PropertyTypeDefaultDescription
appearFromAppearFrom"left"The component will appear from that direction
animationDurationnumber300change the animation duration
styleViewStyledefaultset or override the style object for the main container
initialDelaynumberdefaultchange the initial delay of the appearing animation
delayIntervalnumber200change the each children's delay interval in each appearing animation

Future Plans

  • LICENSE
  • More Animation Type
    • Opacity
    • Solid Movement
    • Scale
  • Write an article about the lib on Medium

Credit

Heavily inspired from aarkalyk's awesome polls app

Author

FreakyCoder, kurayogun@gmail.com

License

React Native Animated is available under the MIT license. See the LICENSE file for more info.