walterholohan / react-native-crisp-chat-sdk

React-Native bridge for Crisp Chat iOS and Android SDK's
MIT License
71 stars 26 forks source link

Callback when the user closes the modal #17

Closed minuitagency closed 1 year ago

minuitagency commented 3 years ago

Hey,

Thanks for the update, the SDK works great on our side now,

One quick question: how do you know the modal was closed to update the showChat state?

Thanks,

Théo

predescu commented 3 years ago

Like a workaround, I think you can use something like this:

setShowChat(true);
setTimeout(() => {
    setShowChat(false);
}, 1000);