-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Delay when showing the view in android navigation #112
Comments
It must be the loading / parsing of the Lottie content which might be taking some time. Have you tried using a file path? (Which is what you should always do). |
@farfromrefug I have found the problem, it is its fork 😅, with NS this does not happen. I found it because when creating the simple demo it didn't happen and I tried with the fork and that's when it happens, this is the example: Repo: https://github.com/vallemar/ns-lottie/tree/main Note: It is not seen in all navigations, so if it is not detected, enter and exit several times. In my project it is more noticeable, I think it is because I have more views And yes, in my project I use the assets path for the Lotties, the previous string was only a test to check that it was not slow loading the file |
OK great will test and see what could be wrong in my fork ;) |
@vallemar I dont see any delay with your demo app. Neither on an emulator(android 10) nor on a real device (android 13). |
When I navigate to a page with lottie it has a delay until it appears, it can be seen in the video. It is not always the same delay, there are times it is more and other times it is less
Grabacion.de.pantalla.2023-09-30.a.las.10.55.18.mov
It doesn't just happen to me with that lottie, I have another one on another screen and I also have the same behavior
Note: I have tried to put everything directly in the initNativeView method of the plugin so that it does not take long to start the properties, but it keeps doing the same thing
The text was updated successfully, but these errors were encountered: