Запитання 4
What is a recommended approach to identify and fix memory leaks caused by repeatedly opening and closing modals in a React Native app?
Варіанти відповідей
Use profiling tools like Flipper or Android/iOS profilers, and clean up event listeners and intervals in useEffect cleanup functions
Delete all images from the app
Ignore the problem since it only occurs sometimes
Use infinite loops inside modals to keep memory occupied