我正在使用expo框架进行React Native项目。但是,当我的应用启动时,会在启动屏幕前显示小间隔空白屏幕。
答案 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"
},