question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Autoplay memory usage

See original GitHub issue

Is this a bug report, a feature request, or a question?

This is a question.

When I am using autoplay={true}, the memory usage keeps growing and it is making jumps.

Screenshot 2019-11-28 at 11 49 14 AM

When I am using autoplay={false}, the memory usage is stable (above second part) but every time I slide an item, the memory increases as following. I am using PureComponent for each slide. Anyone face this problem before? When I left the app opened for a few hours, it gets to 1 - 2GB memory usage.

Screenshot 2019-11-28 at 11 56 35 AM

Have you followed the required steps before opening a bug report?

(Check the step you’ve followed - put an x character between the square brackets ([]).)

Have you made sure that it wasn’t a React Native bug?

Yes.

Environment

Environment: React: 16.9.0 React native: 0.61.4 react-native-snap-carousel: 3.8.4

Target Platform: iOS Simulator (13.2.2)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jsdtaylorcommented, Mar 18, 2020

I found the root cause of the issue. I was doing setState in onSnapToItem and it is forcing my whole page to render all the time… 😄

Hey @Aung-Myint-Thein, how are you doing it now?

0reactions
dohooocommented, Oct 8, 2021

Sorry, please allow me to advertise for my open source library! ~ I think this library react-native-reanimated-carousel will solve your problem. It is a high performance and very simple component, complete with React-Native reanimated 2

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to manage AutoPlay settings for USB drives and Memory ...
Open Settings. Click on Devices. Click on AutoPlay. Turn on or off the Use AutoPlay for all media and devices toggle switch.
Read more >
How to Disable AutoPlay in Windows 10 and 11 - MakeUseOf
Under Choose AutoPlay default, click the drop-down for Removable drive for USB flash drive and select Take no action.
Read more >
Manage AutoPlay Settings for USB Drives and Memory Cards
This post will show you how to enable, disable, and customize the AutoPlay settings for USB drives and memory cards in Windows 10....
Read more >
AutoPlay Settings in Windows 10 - Tutorial - TeachUcomp, Inc.
To enable AutoPlay, set the “Use AutoPlay for all media and ... drive” and “Memory card,” in the “Choose AutoPlay Defaults” section.
Read more >
How to enable or disable AutoPlay in Windows 10 and 11
Open Windows Settings. Settings · Select Bluetooth & Devices. · Select AutoPlay. Bluetooth and Devices · Select Use AutoPlay for all media and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found