notadamking / react-typing-animation

A fully-featured typing animation in React that supports any valid JSX.
https://adamjking3.github.io/react-typing-animation-example/
266 stars 42 forks source link

onBeforeType and onAfterType #32

Closed dallin-christensen closed 5 years ago

dallin-christensen commented 5 years ago

altered onType callback prop to be onBeforeType, and added an onAfterType. Both callbacks will give the current state as arguments to the callback.

<Typing
    onBeforeType={(currentText) => {}}
    onAfterType={(currentText) => {}}
/>
dallin-christensen commented 5 years ago

@adamjking3 Np! 🤙