1.0.1 • Published 9 months ago

d1_ay-typinganimation v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

React Native Typing Animation Component

A reusable React Native component that simulates a typing animation, displaying text character by character.

Features

  • Smooth and customizable typing animation.
  • Control animation speed and text content.
  • Easily integrate it into your React Native projects.

Installation

Install the component with npm

  npm i d1_ay-typinganimation

Usage/Examples

iimport React from 'react';
import { StyleSheet, View } from 'react-native';
import TypingAnimation from 'd1_ay-typinganimation/TypingAnimation';

const App = () => {
  return (
    <View style={styles.container}>
      <TypingAnimation
        speed={20}
        style={{ fontSize: 20, fontFamily: 'monospace', color: 'black' }}
        message={'Hello, world! This is a typing animation.'}
      />
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

export default App;

props

-style (Object): Custom styles to be applied to the text.

-message (string): The message to be displayed in the typing animation.

-speed (number, optional): The speed of the typing animation in milliseconds per character.

1.0.1

9 months ago

1.0.0

9 months ago