我有一个关于"react-pdf“库的问题。我想使用“换行”来正确地换行,现在当文本太大时,插入一个"-“。
有谁可以帮我?谢谢大家
发布于 2020-04-15 23:39:18
谢谢你的回答。以下是代码的一部分:
如果我的文本包含一个包含许多字母的单词,它不会换行,而是插入字符"-“
const styles = StyleSheet.create({
content: {
'@media max-width: 150': {
flexDirection: 'column',
},
'@media min-width: 100': {
flexDirection: 'row',
},
marginLeft: 0
},
body: {
borderBottom: 1,
borderBottomColor: '#00000',
},
text: {
fontSize: 12,
color: '#000000',
textAlign: 'center'
},
});
<View style={styles.content} >
<View style={styles.body}>
<Text style={styles.text}> here I put my text </Text>
<View/>
<View/>示例: questa e‘una -
parolalunga
我会的: questa e‘una
provadiparola
伦加
发布于 2021-11-17 15:52:45
您可以使用an example from the documentation禁用连字符
Font.registerHyphenationCallback(word => [word]);https://stackoverflow.com/questions/61231367
复制相似问题