我将我的应用程序升级为react-原生0.61.2,所以我不得不将react-原生--firebase升级到6.0.3,我从添加@react-native-firebase/app和@react-native-firebase/messaging包开始。
import { Platform } from 'react-native'
import { firebase } from '@react-native-firebase/messaging'
// pluck values from your `GoogleService-Info.plist` yo
我已经在Chrome中安装了react developer tools扩展,如果我查看扩展列表,它将被列出为已启用。但是,在顶部的菜单栏中,我有元素、控制台、源代码等,没有React选项卡。我可以打开我的一个反应-本机源文件,甚至停止在它的断点。
在react工具的自述中,它声明了
The "React" tab won't show up if React can't communicate with the devtools. When the page loads, the devtools sets a global named __REACT_DEVT
我正在用expo运行我的react-原生应用程序,我面临的问题是模拟由“react-原生”导出的NativeModules,我目前的解决方案是使用插件将“react-原生”模块重定向到我的“react-原生-代理”模块,该模块导出一个扩展NativeModules的代理对象。
一切都进行得很顺利,直到我想要使用expo-file-system来模拟我们的原生FileSystem api,expo-file-system是一个es模块,出现了一个由模块混合使用引起的错误。我尝试了import * as FileSystem from 'expo-file-system';中的ba
在跟随之后
(不使用博览会)
我遵循指南并通过创建Reacti-native.config.js文件禁用了自动链接。
但是当我运行react原生运行-android
error: package com.swmansion.gesturehandler.react does not exist
error: cannot find symbol
return new RNGestureHandlerEnabledRootView(MainActivity.this);
在此错误尝试将以下行添加到
**project/android/app/build.gradle**
我正在尝试升级,我遇到了以下情况:
error: bundling: UnableToResolveError: Unable to resolve module `react/lib/ReactComponentTreeHook` from `/Users/anthony/dev/apptova-react/node_modules/react-native/Libraries/Performance/Systrace.js`: Module does not exist in the module map or in these directories:
/Users/anthony/
我试着运行react-原生运行--android,我得到了这个错误。
info Running jetifier to migrate libraries to AndroidX. You can disable
it using "--no-jetifier" flag.
error Failed to run jetifier. Run CLI with --verbose flag for more details.
Error: spawnSync C:\Users\JayK\Desktop\React\AwesomeProject\node_
当我试图通过react-原生运行-android构建我的应用程序时,我就会遇到这个错误。昨天天气很好,但今天突然出错了。
我已经检查了react本机矢量图标,它看起来很好,这在iOS中也很好。
以下是错误:
* What went wrong:
A problem occurred configuring project ':react-native-vector-icons'.
> Could not resolve all files for configuration ':react-native-vector-icons:classpath'