This repository has been archived by the owner on Apr 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 94
iOS warning: [setShortcutItems()] UI API called on a background thread #87
Labels
Comments
My coworker suggested this change: In RNQuickActionManager.m Change:
To:
|
@rsml great! Would you be willing to put this together in a PR? |
@jordanbyron Sure thing. I submitted a pull request. |
jordanbyron
added a commit
that referenced
this issue
Nov 24, 2019
…-thread Fix setShortcutItems UI API called on a background thread (#87)
Thanks @rsml |
greedbell
pushed a commit
to shimo-react-native/react-native-quick-actions
that referenced
this issue
Dec 20, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have an app where on iOS it opens in response to clicking a universal link. Then I immediately call setShortcutItems().
I get this warning in the console, but no crash:
I'm calling setShortcutItems() from inside javascript so I'm not sure what's causing it to run on a background thread.
I'm thinking you might need to add a
Dispatch.main.async
on iOS for cases when it's running in a background thread.The text was updated successfully, but these errors were encountered: