【发布时间】:2022-01-20 23:39:22
【问题描述】:
嗨
我想通过将 border radius 添加到文本输入来设置我的应用程序的样式,我观察到输入中的文本超出了 corners 我该怎么做向右移动。
这是文本输入代码
<TextInput
placeholder="Username"
placeholderTextColor="rgba(0,0,0,0.6)"
maxLength={35}
style={styles.input}
/>
这是样式代码
input: {
backgroundColor: '#ccc',
height: 50,
width: 320,
alignSelf: 'center',
borderRadius: 50,
textAlign: 'left',
marginTop: 35,
fontSize: 18,
fontFamily: 'oswald',
fontStyle: 'bold',
color: 'black',
}
【问题讨论】:
标签: react-native styling react-native-textinput