'Is there a way to show splash screen on **command in** react-native?
I was working with react-native and I had a need to show splash screen/ or a loading screen when I log-in my user. How can I use the default splash screen? or do I have to implement one using state variables?
dependencies: latest version of every modules.
Solution 1:[1]
The package react-native-splash-screen includes methods to programmatically show/hide the splash screen. See the API here
Solution 2:[2]
Here is an awesome package that will show/hide splash based on demand https://github.com/zoontek/react-native-bootsplash
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | dansiemens |
| Solution 2 | Waqas Ahmed |
