我在Expo项目的app.json中使用带有渐变的初始图像。其调整大小模式设置为包含。现在,它占用了顶部和底部的空间。添加任何背景色时,它与图像不匹配,因为图像是通过渐变制成的。 任何解决方案将不胜感激。
由于某些原因,不能使用包含以外的任何其他调整大小模式。
"splash": {
"image": "./src/assets/images/splash_screen.png",
"resizeMode": "contain",
"backgroundColor": "#2962FF"
},
答案 0 :(得分:0)
使用此
#include <iostream>
#include <string>
using namespace std;
int main(){
string input;
cin >> input;
for(int i = 0; i < input.length(); i++){
if(input.at(i) == ';') cout << endl;
else cout << input.at(i);
}
}