Skip to content
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

Fix type of promise reject blocks #208

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Conversation

janicduplessis
Copy link
Contributor

@janicduplessis janicduplessis commented Jun 17, 2024

The latest react native version introduced a compat mode for native modules that have not been migrated to the new architecture. It currently doesn't work with intercom because it validates the type of methods that return promises and 3 of them used the wrong type RCTResponseErrorBlock instead of RCTPromiseRejectBlock. This fixes it by changing the type and passing proper error code and error message.

@liutingdu liutingdu merged commit 593d76c into intercom:main Jun 17, 2024
6 checks passed
@janicduplessis janicduplessis deleted the patch-2 branch June 17, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants