1):下载插件 参考链接:https://github.com/crazycodeboy/react-native-splash-screen #安装依赖 npm i react-native-splash-screen --save #链接依赖库、若链接失败请再次执行npm install命令后重新链接 react-native link react-native-splash-screen 2):修改android/app/src/main/java/com/包名/MainActivity.java,添加如下内容: + import android.os.Bundle; + // react-native-splash-screen >= 0.3.1 + import org.devio.rn.splashscreen.SplashScreen; + // react-native-splash-screen < 0.3.1 + import com.cboy.rn.splashscreen.SplashScreen; + @Override + protected void onCreate(Bundle savedInstanceState) { + SplashScreen.show(this); // here + super.onCreate(savedInstanceState); + } 3):在app/src/main/res/layout(若无此文件夹请自行创建)下创建launch_screen.xml、添加内容为: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android