InterviewSolution
Saved Bookmarks
| 1. |
How to make your React Native app feel smooth on animations ? |
|
Answer» The primary reason and an important one why well-built NATIVE apps feel so smooth are by avoiding expensive operations during interactions and animations. REACT Native has a limitation that there is only a single JS execution thread, but you can use InteractionManager to MAKE sure long-running work is scheduled to start after any interactions/animations have completed. Applications can schedule tasks to run after interactions with the following: InteractionManager.runAfterInteractions(() => { // ...long-running SYNCHRONOUS TASK...}); |
|