-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onRender event #989
Comments
Could you try to profile it in android studio? It's quite likely that you're not using the most efficient primitives to create the avatars. Seems like it should be possible to create equivalent output using only paths with fill, removing all uses of mask and opacity. That would probably speed things up significantly. Estimating how much work there is to do is not easy, and any loading indicator would only make it take even longer. If you really want it, I would recommend using something like https://github.com/oblador/react-native-progress/blob/master/Bar.js |
I solved loading as below. I also tried onLayout but It doesn't react changes neither my solution.
Actually I dont know anything about how to profile on Android but I am planning to share react-native version of avataaars on github. After I upload, could you help me to improve performance? |
@zek Let me know when you've shared the repo, I'm interested in making it work on RN too |
@zek You don't need to know anything about profiling android from before, just read the docs, or start the profiler and explore: https://developer.android.com/studio/profile/android-profiler |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open. |
Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you. |
Hi, I'm porting https://getavataaars.com/ this library.
It's working fast enough on IOS (0.5 - 1 second delay for rendering)
but it is very slow on Android (3 seconds)
I know you got some plans to improve performance on Android but at least is it possible to show a loading indicator while rendering?
The text was updated successfully, but these errors were encountered: