App Issue

This thread contains 1 reply, has 2 voices, and was last updated by darshan.soni007 5 years, 3 months ago.

  • Author Replies
    • #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?

    • #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.

Viewing 1 reply thread

You must be to reply to this thread.Please or . Registration is 100% free.


Call Us Now For Free Consultation97370 05566

Our experts listen to you patiently and suggest you the right course after conducting a personality profile test. Register your interest below to schedule personality profile test for you.


Copyright 2016-2024 Smart Mentors. All Rights Reserved.



Sign up now to Become An Instructor

    Register your Interest

      cf7captchaRegenerate Captcha