-
Notifications
You must be signed in to change notification settings - Fork 1
Keyboard
Kevin Gonzalez edited this page Sep 13, 2019
·
2 revisions
-
Import
Keyboardfromreact-mk -
Keyboardaccepts any child with a validtoStringmethod -
Keyboardexposes atypemethod whenchildrenis a type offunction -
Keyboardwill type out your text in an organic manner, see example -
Besides
children,Keyboardcan take the following optional props-
sentenceDelayPerCharRange: an array of two numbers indicating the delay in milliseconds whichreact-mkapplies between words, the delay is calculated by getting a random number in your range and multiplying it by the number of characters in your sentence. -
keyPressDelayRange: an array of two numbers indicating the delay in milliseconds whichreact-mkapplies between characters, the delay is calculated by getting a random number in your range.
-
See example.