在跟随之后
(不使用博览会)
我遵循指南并通过创建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**
这是我的文件,我已经确保安装了@react-导航/堆栈和@react-导航/本机。但我还是明白这个问题。我还在用世博会
import { createStackNavigator } from '@react-navigation/stack';
import { createAppContainer } from '@react-navigation/native';
import HomeScreen from '../pages/home';
import Disco
我正在尝试升级,我遇到了以下情况:
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/
我正在尝试创建新的抽屉导航,但是得到了下面的错误
Unable to resolve "react-native-screens" from "node_modules\@react-navigation\drawer\src\views\DrawerView.tsx"
Failed building JavaScript bundle.
但与我在新的空项目中使用的代码相同--在较早版本的“new导航”中使用了本机-抽屉:"^2.6.2“,但在”new导航“中不起作用的代码:"^4.0.10",它显示了react-原生-抽屉被移除,@ne
我正在用expo运行我的react-原生应用程序,我面临的问题是模拟由“react-原生”导出的NativeModules,我目前的解决方案是使用插件将“react-原生”模块重定向到我的“react-原生-代理”模块,该模块导出一个扩展NativeModules的代理对象。
一切都进行得很顺利,直到我想要使用expo-file-system来模拟我们的原生FileSystem api,expo-file-system是一个es模块,出现了一个由模块混合使用引起的错误。我尝试了import * as FileSystem from 'expo-file-system';中的ba
我的应用程序当前在根目录中设置如下:
-SwitchNavigator
-Splash (Also decides if you have a token or not and where to send you...)
-AuthFlow (If no Token...)
-Login Screen
-SecureFlow (If a Token exists...)
SecureFlow看起来像这样:-
(MobX提供程序)
<Provider store={stores}>
<DrawerNavigator />
</Provider>
我无法安装react本机反应-本机映射,当我尝试使用react-本机运行-android构建时(我还没有在iOS上尝试),就会出现这个错误:
配置项目':app‘时出现问题。无法解决配置的所有依赖项“:app:_调试器应用”。未找到名称为“默认”的配置。
我按照这里的指示:
当我跑步时:
react-native link
我得到:
rnpm-install info iOS module react-native-maps is already linked
rnpm-install info Android module react-native-geocoder is
我将我的应用程序升级为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
我试图在我的RN项目中使用React导航,但是当我安装react-本机屏幕(这是它工作所必需的包)时,我不能再次构建该项目。
我得到的错误如下:
Task :react-native-screens:compileDebugKotlin FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warn