How to set the splash screen for react-native android -


how 1 set splash screen react-native android, can't find on topic , thought odd.

thanks

i had tried 3 of following ways. first 1 using android splash screen react-native projects.

  1. using npm package written other.

    reference: https://github.com/remobile/react-native-splashscreen

  2. create splashscreen component , redirect afterward.

    reference: how create kind of splash screen/launching screen, disappears after app loaded? (react native)

  3. natively in java code.

    reference: https://www.bignerdranch.com/blog/splash-screens-the-right-way/

i have fetch request in componentdidmount() of initialroute.

using first way list above performs request while showing splash screen.

whereas second way, needs wait until splashscreen component unmounted.

third way more codes write , maintain.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -