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

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -