HwangTaehyun / react-native-lottie-splash-screen

⚡ Lottie splash screen for your react native app!
MIT License
218 stars 61 forks source link

Android: Can i use SplashScreen.show(this) ? #43

Open sasha9878 opened 2 years ago

sasha9878 commented 2 years ago

On iOS I can directly put a view to RNSplashScreen without lottie id/name [RNSplashScreen showLottieSplash:animationUIView inRootView:rootView];

I want to do same for Android, i only want static view and not animation with lottie on splash SplashScreen.show(this, R.id.lottie) => SplashScreen.show(this) // No R.id.lottie

As per my project requirement i have to show animated view/ static image on splash conditionally but on Android there seems i have to provide lottie id.

Is it possible i can only show image and not lottie animation conditionally?

Dat-Mobile commented 1 year ago

Same question, I encounter issue error: cannot find symbol R.id.lottie

When I replace R.id.lottie with 0 it crashes on start

Dat-Mobile commented 1 year ago

My bad !!

It's because I forgot to include launch_screen.xml file