Android添加啟動界面
打開文件 android/app/src/main/res/drawable/launch_background.xml
修改內(nèi)容笋轨,打開注釋了的代碼launch_image那段删豺。
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<!-- You can insert your own image assets here -->
<item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item>
</layer-list>
注意@mipmap/launch_image就是你要設(shè)置的啟動界面的圖片資源名字芝加,你要放置到對應(yīng)的文件夾里面
image.png
IOS添加啟動界面
ios系統(tǒng)比較簡單,使用xcode打開項目ios工程,選擇Assets.xcassets/LaunchImage.imageset,然后根據(jù)提示拖入對應(yīng)的啟動圖片
image.png