-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Description
Description
Updating from 0.36.0 to 0.39.2 and 0.40.0 renders the app unusable after minimal interaction. The javascript thread slowly grinds to a halt until it becomes unresponsive. Native UI, such as scrolling or native animations is unaffected. Problem persists with 0.41.0-rc.0
It works perfectly well with 0.38.0
Reproduction
I managed to reproduce this in a freshly installed app with an infinite scroll list containing rows with images. With 0.40.0, the JS driven animation begins to lag after only ~150 items. WIth 0.38.0, animation stays smooth as long as there is no rendering.
See attached videos below:
0.38.0
0.40.0
Test app can be found here
A relative StackOverflow question.
Solution
I suspect the new C-based CSS implementation, as that is the only major change from 0.38 to 0.39. Another reason could be a problem with removeClippedSubviews.
Additional Information
- React Native version: 0.39.2 / 0.40.0
- Platform: Android
- Operating System: MacOS