如何在Expo中启动屏幕之前删除空白屏幕?

时间:2020-10-12 21:13:39

标签: expo

我正在使用expo框架进行React Native项目。但是,当我的应用启动时,会在启动屏幕前显示小间隔空白屏幕。

1 个答案:

答案 0 :(得分:0)

首先删除资产文件夹中的默认图标和启动屏幕,然后将其替换为新创建的自定义启动屏幕和图标,然后将App.json文件编辑为

"icon": "./assets/yourIconName.png", //the name of image in asset folder
"splash": {
  "image": "./assets/yourSplashNmae.png", //the name of image in asset folder
  "resizeMode": "contain",
  "backgroundColor": "#ffffff"
},