A typewriter component for react-native
npm install react-native-animated-typewriterA [React Native] component for spelling out words, letter by letter.
```
$ yarn add react-native-animated-typewriter
OR
``
$ npm install --save react-native-animated-typewriter
All you need is a text prop to make it work.
`javascript
import React, { Component } from 'react'
import AnimatedTypeWriter from 'react-native-animated-typewriter'
class YourLitComponent extends Component {
render() {
return
}
}
`
Any props accepted by React Native's Text component are accepted by AnimatedTypeWriter. These additional props are also accepted:
type: Number default: 50
The number of milliseconds between letters typed on the screen
type: Object default: {}
Style the text container
type: Object default: {}
Style the text
type: Function default: none
A callback called when each token is typed during the animation. The
function is called with two arguments:
(Number index, Number previousVisibleCharacters).
type: Function default: none`
Called once the typing animation has completed.
Released under the MIT license. See LICENSE for details.
[React Native]: https://facebook.github.io/react-native/