Skip to content
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

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

Open
sasha9878 opened this issue Jul 21, 2022 · 2 comments
Open

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

sasha9878 opened this issue Jul 21, 2022 · 2 comments

Comments

@sasha9878
Copy link

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
Copy link

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
Copy link

My bad !!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants