nativescript-community / ui-lottie

NativeScript plugin to expose Airbnb Lottie
https://github.com/airbnb/lottie-android
Other
177 stars 57 forks source link

Splash creen error #76

Open NavruzbekNoraliev opened 3 years ago

NavruzbekNoraliev commented 3 years ago

When used for splashscreen it lauches the app and then closes

i created a separate component for splash screen removed LaunchScreenTheme from AndroidManifest then when the app loads it first goes to splashscreen after it plays fully should navigate to login route

<GridLayout>
    <LottieView width="100%" height="100%" src="~/assets/lottie/splashscreen.json" loop="false" autoPlay="true">
    </LottieView>
</GridLayout>

the app just opens and closes, can someone navigate me on how to do it properly if it is not bug of package

bradmartin commented 3 years ago

I think the splashscreen on android has to be an XML file for Java/Android. You could do something like this, but it would require a little thinking and work to sort through. Might be something to hop on the slack channel and ask some others if they've done anything similar. I personally, have not so I can't be much help with this specifically.