nandorojo / moti

🐼 The React Native (+ Web) animation library, powered by Reanimated 3.
https://moti.fyi
MIT License
3.9k stars 120 forks source link

List of skeleton is very slow #341

Closed FouadMagdy01 closed 1 month ago

FouadMagdy01 commented 1 month ago

Is there an existing issue for this?

Do you want this issue prioritized?

Current Behavior

When i try to render a list of skeleton views it is very slow and bad for ux I think thr issue is from using linear gradient which is being rendered natively

Si, rendering too much skeletons become impossible to being handled

Try to use RN reanimated instead

Expected Behavior

List of skeletons should be not that slow

Steps To Reproduce

1- create a skeleton view 2- try to render more than 5 and notice the performance issues

Versions

- Moti:latest
- Reanimated:latest
- React Native:latest

Screenshots

Not provided

Reproduction

Try to create list of skeleton MotiViews

nandorojo commented 1 month ago

Moving to https://github.com/nandorojo/moti/issues/336