d1_ay-typinganimation

1.0.1 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i d1_ay-typinganimation

      Weekly Downloads

      0

      Version

      1.0.1

      License

      ISC

      Unpacked Size

      3.22 kB

      Total Files

      4

      Last publish

      Collaborators

      • d1_ay