V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
janda
V2EX  ›  问与答

请问 react native 文本断行不生效?

  •  
  •   janda · 2021-05-24 14:52:30 +08:00 · 660 次点击
    这是一个创建于 1062 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Text 组件用得: word-break:break-all

    搜下了、才发现 rn 是没有这个了!只有 react 才有!请问下大佬们、有什么方法实现这个方法么

    就像这样一样: https://developer.mozilla.org/zh-CN/docs/Web/CSS/word-break

    1 条回复    2023-06-14 16:12:22 +08:00
    TKI
        1
    TKI  
       311 天前
    老哥,最后是怎么实现的?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2852 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 13:00 · PVG 21:00 · LAX 06:00 · JFK 09:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.