我有一个具有以下样式的 TextInput:
amountInput: {
flex: 1,
backgroundColor: 'rgba(255, 255, 255, 0.1)',
color: 'rgba(255, 255, 255, 0.9)',
},
在 iOS 上,它看起来似乎没有足够的填充:
在 Android 上,默认情况下有巨大的填充:
没问题 - 我将设置左右填充和高度:
amountInput: {
flex: 1,
backgroundColor: 'rgba(255, 255, 255, 0.1)',
height: 30,
paddingRight: 5,
paddingLeft: 5,
color: 'rgba(255, 255, 255, 0.9)',
}
在 iOS 上看起来不错:
但是Android搞砸了:
如何制作像倒数第二张 iOS 截图那样的 Android 输入框?谢谢。