Commit 349ebd3
committed
fix: RN Intercom on iOS run not on main thread
When running Intercom I noticed that the app is lagging on the first usage of any Intercom method (subsequent
usages seems to be OK). When checking logs in XCode, I noticed that there's warning "- [UIApplication
supportsMultipleScenes] must be used from main thread only" for any method that is run as a first one in the app.
To handle all possible cases, I made a patch where I declare the main queue as a `- methodQueue`
(https://reactnative.dev/docs/native-modules-ios#threading)1 parent 16f7c0e commit 349ebd3
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
84 | | - | |
| 88 | + | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
| |||
229 | 233 | | |
230 | 234 | | |
231 | 235 | | |
232 | | - | |
| 236 | + | |
233 | 237 | | |
234 | 238 | | |
235 | 239 | | |
| |||
0 commit comments