From 41a148d5c7aeae4a0bf1b972f088a655c25d45d2 Mon Sep 17 00:00:00 2001 From: Mike Gnanakone Date: Mon, 22 Mar 2021 10:46:41 -0700 Subject: [PATCH] Get rid of error when "typing" prop is set to > 1 For my app, I needed the type speed to be a little faster... please consider my one character proposal and thank you for creating this library --- components/typewriter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/typewriter.js b/components/typewriter.js index 1c290d8..233c722 100644 --- a/components/typewriter.js +++ b/components/typewriter.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import { Text } from 'react-native'; import { getTokenAt, hideSubstring } from '../utils'; -const DIRECTIONS = [-1, 0, 1]; +const DIRECTIONS = [-1, 0, 10]; const MAX_DELAY = 100; export default class TypeWriter extends Component {