android - Twitter嵌入不渲染反应本机渲染html
问题描述
我正在使用 react-native-render-html@foundry
<HTML
contentWidth={Dimensions.get('screen').width}
onLinkPress={(e,href)=>onShouldStartLoadWithRequest(e,href)}
html={item.news.content.rendered}
tagsStyles={ { p: { textAlign:'justify', fontSize:18, fontStyle: 'normal', color: !context.state.color?customcolor.black: customcolor.white ,fontFamily:customfonts.font} }}
WebView={WebView}
/>
解决方案
您需要为iframe
标签添加自定义渲染器。幸运的是,有一个插件可以做到这一点:@native-html/iframe-plugin
推荐阅读
- reactjs - 如何使用 AWS Lambda 和 Axios 更新 DynamoDB 项目
- c# - C# 和 SQL Server 中的 Chrone Job Ranking - 轻量级应用程序调度程序
- javascript - javascript/react keydown 与 onClick
- c# - 转换后日期 2030 变为 1930
- deep-learning - 当数组的所有值都为零时,我们可以使用 softmax 激活吗?
- reactjs - HtmlWebpackplugin 避免编辑 index.html
- visual-studio - 打开任何项目时 Visual Studio 2019 16.6.2 100% cpu 使用率
- hadoop - 如果 Hive 的 reducer 数量与键的数量不同,会发生什么?
- sql - 如何连接 SQL Server 中的表,以便将每一行连接一次
- javascript - How do you pass HTML variables to google app scripts