2 回答

TA贡献1865条经验 获得超7个赞
<View style={[CommonStyles.cardStyle, { padding: 8, **marginTop: '15%', marginBottom: "15%", }]}>**
{
this.renderTextInput("UPI Address", "upi_id", "912xxxxxxx@xxx.com", 17, "default", {})
}
<Text style={{color:'black',textAlign:'center', fontWeight: 'bold',fontSize:20}}>or</Text>
{
this.renderTextInput("Account Number", "bank_acc_no", "14xxxxxxx789", 12, "default", {})
}
{
this.renderTextInput("Ifsc Code", "ifsc_code", "SBIN000xxxx", 11, "default", {})
}
{
this.renderTextInput("Account Holder Name", "acc_holder_name", "AbXXXXXcd", 30, "default", {})
}
<Text style={{ textAlign: 'center', marginTop: 24, marginBottom: 32, }}>{AddVehicleStringMap.note}</Text>
</View>
//注意以上代码 //首先,将带有响应本机View组件的KeyboardAvoidingView包裹起来,因为您已经使用 了如下所示的百分比等相对值,这确实有助于您在键盘出现和损坏时尝试用所示的代码编辑代码以上
添加回答
举报