react-native-splash-screen icon indicating copy to clipboard operation
react-native-splash-screen copied to clipboard

can I use custom animation like spinner on splash screen?

Open tishad770 opened this issue 9 years ago • 8 comments

the splash screen is called in MainActivity.java, not JS file. So I can't include any spinner js component. Is there any workaround?

tishad770 avatar Apr 04 '17 08:04 tishad770

The splash screens are native UI (an iOS .xib and an Android xml layout) so in theory you could use something like an animated gif.

dantman avatar Apr 22 '17 04:04 dantman

Doesn't work with gif files. am i missing something? or its not possible with react native?

sadi304 avatar Feb 11 '18 13:02 sadi304

This library shows the splash screen with native UI. It shows LaunchScreen.xib on iOS and shows launch_screen.xml on Android. You would need to render the animation in both of those.

DylanVann avatar May 01 '18 18:05 DylanVann

I have added gif image in lauch_screen.xml. But when I run the app in android device, it is only showing first image of gif.

Can you please help?

bhoomika911 avatar Jul 02 '18 04:07 bhoomika911

@bhoomika911 note that android not plays with animated *.gif files by default. There is a small tutorial for android animated splash.gif https://www.youtube.com/watch?v=Mas3Lnd3WtM (not mine)

seclace avatar Jul 13 '18 02:07 seclace

@bhoomika911 note that android not plays with animated *.gif files by default. There is a small tutorial for android animated splash.gif https://www.youtube.com/watch?v=Mas3Lnd3WtM (not mine)

it is for xamarin, i think

Biplovkumar avatar Mar 08 '19 12:03 Biplovkumar

is there any method to plug GIF animations to this splash screen ? Android and IOs?

herath avatar Mar 31 '19 21:03 herath

@herath what you are looking for is Lottie :) add Lottie to your react-native project and enjoy! It's animated SVGs 100% supported on both Android/iOS. Check on lottiefiles.com

msqar avatar Sep 10 '19 02:09 msqar