Skip to content

Fix Chatwoot Modal Crash Caused by Deprecated BackHandler #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

priyanshuone6
Copy link

Fixes #52

Clicking the X button on the Chatwoot modal triggers the deprecated error mentioned in the issue.

React Native 0.77.0 deprecated BackHandler.removeEventListener, which is still used by the version of react-native-modal bundled with Chatwoot. With Expo SDK 53 requiring React Native 0.79, this results in the reported error.

The latest version of react-native-modal resolves this issue. I have verified the fix by using npm overrides to force Chatwoot to use the updated version, and the modal now works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BackHandler Error while closing Chatwoot
1 participant