首页 > 解决方案 > Catalyst Instance 已经消失:由 FrescoModule 请求

问题描述

描述

我正在将 react-native 与跨平台支持、android(发现错误)、ios(未测试)、web(正常工作)集成。

使用命令创建项目rect-native init "app"并使用它进行安装时,react-native run-android它可以工作,但是在安装 react-native-web 时它给了我错误,再次尝试是它给我错误的地方

反应原生版本:

系统:
OS: Windows 10 10.0.19043
CPU: (4) x64 Intel(R) Core(TM) i5-6500T CPU @ 2.50GHz
Memory: 2.98 GB / 15.88 GB
二进制文件:
Node: 14.17.6 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 7.21.1 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
开发工具包:
Android SDK: Not Found
Windows SDK:
  AllowDevelopmentWithoutDevLicense: Enabled
IDE:
Android Studio: Version     2020.3.0.0 AI-203.7717.56.2031.7678000
Visual Studio: Not Found
语言:
Java: 15.0.1
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.65.1 => 0.65.1
react-native-windows: Not Found
npmGlobalPackages:
*react-native*: Not Found

重现步骤

  1. react-native init 'Name'
  2. 从步骤https://necolas.github.io/react-native-web/docs/installation/整合 react-native-web
  3. 从这里为 react-native-web 应用额外的配置https://arry.medium.com/how-to-add-react-native-web-to-an-existing-react-native-project-eb98c952c12f
  4. react-native run-android

预期成绩

应用程序正常运行

链接(与顶部相同):

https://necolas.github.io/react-native-web/docs/installation/ https://arry.medium.com/how-to-add-react-native-web-to-an-existing-react-本机项目-eb98c952c12f

标签: androidreactjsreact-nativereact-native-androidreact-native-web

解决方案


推荐阅读