Forum

App Issue

This thread contains 1 reply, has 2 voices, and was last updated by  darshan.soni007 8 months, 1 week 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.


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

GET FREE CONSULTATION

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.

SUBSCRIBE TO OUR NEWSLETTER

Contact Us

Working Hours

  • Monday9:00 AM – 9:00 PM
  • Tuesday9:00 AM – 9:00 PM
  • Wednesday9:00 AM – 9:00 PM
  • Thursday9:00 AM – 9:00 PM
  • Friday9:00 AM – 9:00 PM
  • Saturday9:00 AM – 9:00 PM
  • SundayClosed
Copyright 2016-2019 Smart Mentors. All Rights Reserved.

Login

FORGOT PASSWORD

Sign up now to Become An Instructor

Register your Interest