Commit 198f5ca
committed
Re-arm the timers frame callback on the UI thread
createTimer can run on the native module thread; ReactChoreographer must be
driven from the UI looper (its null-choreographer fallback hop does not cover
the initialized case). Route the lazy re-arm through setChoreographerCallback
on the UI queue, which is idempotent and already used by onHostResume.1 parent ec37b64 commit 198f5ca
1 file changed
Lines changed: 10 additions & 12 deletions
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/core
Lines changed: 10 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
201 | 199 | | |
202 | 200 | | |
203 | 201 | | |
| |||
0 commit comments