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

[sms] Fix MFMessageComposeViewController being initialized from non-main thread #8575

Merged
merged 2 commits into from
Jun 1, 2020

Conversation

tsapeta
Copy link
Member

@tsapeta tsapeta commented May 30, 2020

Why

I got one crash while running tests for expo-sms. It was caused by MFMessageComposeViewController being initialized not from the main thread. This view controller of course extends UIViewController so it should always be called from the main thread.

How

Changed methodQueue of the exported module. All existing methods use this class, so it's probably better than wrapping specific parts of code by dispatch_async.

Test Plan

I wasn't able to reproduce this crash again, as expected 😅 Tested using test-suite examples.

@tsapeta tsapeta requested a review from bbarthec as a code owner May 30, 2020 12:04
@github-actions
Copy link
Contributor

Native Component List for this branch is ready

Copy link
Contributor

@bbarthec bbarthec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@tsapeta tsapeta merged commit 162a805 into master Jun 1, 2020
@tsapeta tsapeta deleted the @tsapeta/qa/sms-method-queue branch June 1, 2020 11:32
tsapeta added a commit that referenced this pull request Jun 1, 2020
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.

2 participants