Home

Awesome

react-native-auto-typing-text

Auto typing text component.

Demo

Demo

Installation

npm install --save react-native-auto-typing-text

Usage

import AutoTypingText from 'react-native-auto-typing-text';

<AutoTypingText
  text={`có căn nhà nằm nghe nắng mưa`}
  charMovingTime={80}
  delay={0}
  style={{
    position: 'absolute',
    width: 300,
    fontSize: 30,
    color: 'rgba(0,0,0,0.7)',
    backgroundColor: 'rgba(0,0,0,0)',
    margin: 20,
    top: 240,
    left: 0,
  }}
  onComplete={() => { console.log('done'); }}
/>

Properties

PropTypeDescription
textstringText to type
charMovingTimenumbertime to type each character
delaynumberDelay time before typing
stylestringStyle for text
onCompletefuncis called when typing completed