react-native-text-animation
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

AnimatedText React Native Package

react-native-animated-text is a simple React Native component that provides animations for text. You can animate text in different ways (e.g., fade-in, fade-out) and customize its behavior with props like duration, starting delay, iterations, and buffer.

Features

  • Animation Types: Fade-in, fade-out and many more.
  • Customizable Styles: Apply custom text and container styles.
  • Control Animation: Set duration, starting delay, buffer and many more.

Installation

npm install react-native-animated-text

Usage

import AnimatedText from 'react-native-animated-text';

<AnimatedText
  text="Hello, World!"
  animationType="fade-in"
  duration={1000}
  startingDelay={500}
  iterations={3}
  buffer={200}
  textStyle={{ fontSize: 20 }}
  containerStyle={{ margin: 20 }}
/>

Props

  • text: The text to animate.
  • textStyle: Custom style for the text.
  • containerStyle: Custom style for the container.
  • animationType: Animation to apply (e.g., 'fade-in', 'fade-out', 'none').
  • duration: Duration of the animation (in milliseconds).
  • startingDelay: Delay before starting the animation (in milliseconds).
  • slideDistance: Distance for slide animations.
  • zoomScale: Scale for zoom animations.
  • iterations: How many times the animation should repeat.
  • buffer: Cooldown between animation iterations.
  • rotationDegrees: Degrees for rotation animations.
  • bounceHeight: Height for bounce animations.

License

Apache-2.0

Author

Created and maintained B G Vinayak

Package Sidebar

Install

npm i react-native-text-animation

Weekly Downloads

2

Version

0.0.8

License

Apache-2.0

Unpacked Size

27.6 kB

Total Files

11

Last publish

Collaborators

  • bgvinayak