skb1129 / react-native-change-icon

Change your application icon programmatically for React Native apps
MIT License
500 stars 92 forks source link

UI API called on a background thread #50

Closed xclidongbo closed 2 years ago

xclidongbo commented 2 years ago

Main Thread Checker: UI API called on a background thread: -[UIApplication supportsAlternateIcons] Main Thread Checker: UI API called on a background thread: -[UIApplication alternateIconName]

gary-cohen commented 2 years ago

I'm seeing the same error and the first time it runs it takes a long time to prompt for the change.. I'm guessing this is why.

skb1129 commented 2 years ago

https://github.com/skb1129/react-native-change-icon/pull/37 Can you please check this PR, will this fix the issue?

gary-cohen commented 2 years ago

@skb1129 Yes, this solves the problem.

gary-cohen commented 2 years ago

@skb1129 can you accept the PR 🙏

skb1129 commented 2 years ago

Closing this issue as it is fixed