Closed corquaid closed 2 years ago
TBot usage:
<TBotPrompt
open={true} // -> open/show TBot
messages={messages} // -> list of messages
floating // -> make tbot floating in the right-bottom corner
currentIndex={3} // -> render first 3 messages right away
/>
Onboarding and home screen are using the same TBot. Differences are:
floating
property, onboarding don't.messages
and open
from the Redux. Onboarding handles messages by itself.Skip next X messages
If you set currentIndex
to the index of the given message on messages
list, it will jump to that message skipping animations.
Wait for the user action
messages
list is a React Component containing the Button with a given onClick
function.onClick
function can trigger any action. When action is completed, you can push new items to the messages
.messages
list has changed, and will render newly added messages.
Description
react-devtools
Motivation and Context
189
How Has This Been Tested?
yarn test
https://www.loom.com/share/cc25a4d60aea40fb979d8ccab6970332