反应本地文本输入的占位符和光标问题

时间:2018-10-26 00:06:23

标签: react-native

我想将占位符置于右侧,并且输入文本的光标从左侧开始。如果我将textAlign:设置为right,则占位符将向右对齐,但光标也将移至右侧并停留在那里。

使用以下代码呈现TextInput:

            <TextInput
               {...this.props}
               style={{width: scaleWidth(120),
               textAlign:'right'}} 
             />

0 个答案:

没有答案
相关问题