【问题标题】:Replace default react-native-render-html components with custom ones用自定义组件替换默认的 react-native-render-html 组件
【发布时间】:2022-10-25 05:01:52
【问题描述】:

我需要以某种方式用我自己的替换默认组件。例如:渲染器需要从 react-native 渲染,但我想以某种方式将其设置为从 native-base 库渲染。这样的事情可能吗?到目前为止,我所阅读的只是对组件进行样式设置,而不是用自定义组件替换它们。

输入:<p>text</p>

我不想要的:

<Text>text</Text>

我需要的:

<CustomComponent>text</CustomComponent>

【问题讨论】:

    标签: react-native native-base react-native-render-html


    【解决方案1】:

    你找到解决方案了吗?我也有同样的问题

    【讨论】:

      猜你喜欢
      • 2023-03-16
      • 2019-05-08
      • 2020-12-29
      • 1970-01-01
      • 2017-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-26
      相关资源
      最近更新 更多