2

I want to create gradient Background splash screen in my react native application but I'm unable to find sources for it, can anyone pls help me out of it

Mahish Dino
  • 180
  • 9
  • You can use react-native-splash-screen from npm and prepare splashcreen using xml like in the readme – WonkyWan Jan 12 '22 at 19:00
  • i been gone through it but there is no gradient option in it – Mahish Dino Jan 12 '22 at 19:02
  • 1
    There is. But instead of writing code like for React Native, you have to look for the solution like for android/ios application. Look here: https://stackoverflow.com/questions/5976805/android-linearlayout-gradient-background – WonkyWan Jan 13 '22 at 21:57
  • 1
    And another option, if you want to write this splash screen in RN. You can use the above plugin to disable the default splash screen and use the first screen of your RN application. With a simple timeout you can set a time to move to the next view. For gradients in react native you can use "react-native-linear-gradient" from npm. I have been using this component some time ago for button background in my application. – WonkyWan Jan 13 '22 at 21:59
  • @WonkyWan, can you tell us how to disable the default splash screen in react-native-splash-screen? – Zoltan Szokodi Sep 29 '22 at 16:46

0 Answers0