App Issue
Thread Tags
Adobe Illustrator Adobe InDesign Adobe Photoshop Android Development Android Programming Android Studio Automation Testing C / C++ Programming Career Options College Lounge css designed Design layout digital marketing Digital Marketing / SEO Fireworks Graphic Design Graphic designing Graphics Design Graphics Designing HTML? Illustrator Internship Training logo Design logo designing mobile phones Photoshop QA react-native Scroll Website SEO Single Page Website Testing Typography UI UI/UX Development UI Design UI Designing UI development User Interface UX Design Viewport Web Designing web pages Website Design-
Register for free!
Registration at Smart Mentors is completely free and takes only a few seconds. By registering you’ll gain:
- Full Posting Privileges.
- Access to Private Messaging.
- Optional Email Notification.
- Ability to Fully Participate.
Register Now, or check out the Site Tour and find out everything Smart Mentors has to offer.
This thread contains 1 reply, has 2 voices, and was last updated by darshan.soni007 3 years, 4 months ago.
-
Author Replies
-
January 10, 2019 at 2:15 pm #51873
I have built my app which is a series of lists of images (e.g. just like Instagram). The app seems to crash at random moments. Which steps should I take to investigate this in React Native?
-
January 10, 2019 at 2:17 pm #51874
Usually, on the Android platform; lists of images are not properly recycled when scrolling. Their memory is never garbage assembled, nor is it manually freed at a lower level. This leads to out-of-memory (OOM) crashes that can happen apparently at random as the app’s memory is exhausted.
We can investigate this by profiling the app’s stack memory usage in either Xcode or Android Studio. If you scroll through a list of images and notice the stack usage steadily climbing without ever falling, it probably means that your images aren’t being reused properly.
To moderate this, we can check which list implementation we are using. In modern versions of React Native, ListView should never be practiced; ensure that the FlatList component is handling the rendering instead. If this is not enough after tuning, you can try making your images lower resolution.
-
AuthorPosts
You must be logged in to reply to this thread.Please login or register. Registration is 100% free.