gpt4 book ai didi

javascript - React Native 输入字段占位符在 iOS 中不起作用

转载 作者:行者123 更新时间:2023-11-28 23:48:15 25 4
gpt4 key购买 nike

this is my code. android side is work fine but iOS not work.

applyLetterSpacing(string, count = 1) {
return string.split('').join('\u200A'.repeat(count));
}

<Item style={borderUnderLine}>
<Input
placeholder={this.applyLetterSpacing('NAME')}
autoCapitalize='none'
returnKeyType='next'
onChangeText={(value) => this.setState({ name: value })}
blurOnSubmit={false}
style={{ letterSpacing: 2 }}
/>
</Item>

最佳答案

applyLetterSpacing 使用箭头函数

applyLetterSpacing = (string, count = 1) => {
return string.split('').join('\u200A'.repeat(count));
}

关于javascript - React Native 输入字段占位符在 iOS 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52250834/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com