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>
Use arrow function for applyLetterSpacing
applyLetterSpacing = (string, count = 1) => {
return string.split('').join('\u200A'.repeat(count));
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.