我正在构建一个从API中获取内容的小应用程序,其中一些内容是HTML的,我愿意在HTML中显示它(基本标记,如B、I、P等等)。我尝试使用react-native-render-html,它还需要react-native-webview (我也安装了它),但是当启动expo时,包括以下内容
import { HTML } from 'react-native-render-html';
我得到了以下错误:
无法从"node_modules\htmlparser2\lib\CollectingHandler.js"解析“./MultiplexHandler”的
为了添加它,我运行了以下命令:
yarn workspace mobile add react-native-webview
从字面上看,我已经查看了下面的错误所指定的node_modules文件夹,react-native-webview显然就在那里。但是,这个错误仍然会被抛出吗?我甚至执行了步骤react--当一个模块显示为缺失但实际上存在时,红色错误屏幕上的本地轮廓就会显示出来。
Error: Unable to resolve module `react-native-webview` from `index.js`: react-native-webview could not be
在安装react-native.webview包之后,当我尝试运行我的React Native应用程序时,我一直收到这个错误。我能做错什么吗?
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1135 file(s) to forward-jetify. Using 8 workers...
info Starting JS server...
info Installing the app.
刚刚克隆了我的客户现有的应用程序,并使用纱线来安装所有的软件包。但是,在试图构建apk时,会遇到以下错误。
error ENOENT: no such file or directory, open '/app/node_modules/react-native-webview/windows/ReactNativeWebView\ReactNativeWebView.vcxproj'
在检查node_modules/react-native-webview/windows/ReactNativeWebView时,我发现该文件实际上存在。
要实现什么.
为ios发布构建一个react本机应用程序,以便能够向TestFlight提交
我做了什么。
阅读
更改要为release(production)构建的方案
Ran Product > Archive。
在以下方面失败:
'React/RCTBridgeModule.h' file not found
其他要知道的事。这个项目使用Cocoapods,这是pod文件
target 'surfpass_app_rx' do
pod 'React', :path => '../n