0.1.4 • Published 2 years ago

react-native-animation-container v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-native-animation-container

container with moving effect

Installation

yarn add react-native-animation-container

or

npm i --save react-native-animation-container

Usage

import { FadeOutAnimation } from 'react-native-animation-container';

// ...

return (
    <FadeOutAnimation loop={false}>
        {/* Text, View, ... etc */}
    </FadeOutAnimation>
)

Components List

  • FadeOutAnimation
  • FadeInAnimation
  • HorizontalAnimation
  • VerticalAnimation
  • AnimationButton

API

These are the most common ones:

PropDescriptionDefault
loopA boolean flag indicating whether or not the animation should loop.true
startValueThis is the starting position of the animation.0
endValueThis is where the animation ends.10
durationThe duration of the animation in ms. Takes precedence over speed when set. This only works when source is an actual JS object of an animation.1000(ms)
onPressThis is the required value for the Animation button
0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago