react-native-typewriter-effect
Version:
Typing animation library for React Native
88 lines (49 loc) • 1.3 kB
Markdown
Typing animation library for React Native.

```sh
npm install react-native-typewriter-effect
```
```tsx
import TypeWriterEffect from 'react-native-typewriter-effect';
export default function App() {
return (
<View>
<TypeWriterEffect content="Hello World!" />
</View>
);
}
```
type: `string`
Required. The text to be typed.
type: `number`
The maximum delay between each character.
type: `number`
The minimum delay between each character.
type: `(char: string, index: number) => void`
Callback function that is called when a character is typed.
type: `() => void`
Callback function that is called when the typing ends.
type: `StyleProp<TextStyle>`
The style of the text.
type: `boolean`
Android only. Whether to vibrate when a character is typed.
type: `boolean`
Whether to use backspace effect.
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
MIT
---
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)