Photo by Christopher Gower on Unsplash

If you are working on react native and just jumped off from expo (using eject command) than there is a huge probability that you may get across this warning in your debugger

SplashScreen.hide() is deprecated

Solution:

The two step solution to this problem that found suitable for my case is given below.

First Step:

Go to the file at this location in your root project folder,

node_modules>expo>build>launch>SplashScreen.js

your file may look like this:

export * from 'expo-splash-screen';
//# sourceMappingURL=SplashScreen.js.map

change the above code to this:

Save the file and stop the metro bundler and rerun the following command in terminal

yarn ios/android

and you are good to go.

Happy Coding πŸ‘¨β€πŸ’»

Ask Question

--

--

Aakash Haider

πŸš€ Passionate React Native Developer | JS Enthusiast | Open Source Contributor 🌍