我试图设置一个react本机项目,在这个项目中,我只尝试用package导航在app.js中创建堆栈导航器,我遵循这个指南,然后进入,但是我得到了错误。
编译失败。D:/Visual Studio Code/Resturant Review/food/App.js模块未找到:无法解析“D:\Visual Studio Code\Resturant Review\food”中的@react导航/堆栈--这是我的代码:
//app.js
import * as React from 'react';
import { View, Text } from 'react-n
// In APP.js
import * as React from 'react';
import { View, Text } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
function HomeScreen() {
return (
<View s
我只是想把我的世博应用从SDK 42升级到44版。我执行了以下命令:
npm i -g expo-cli
expo upgrade
当我尝试运行npm安装时,我得到以下信息:
The expo package was found in your package.json but we couldn't resolve the Expo SDK version. Run npm install and then try this command again.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm E
我正在努力建立一个环境,谁能看看这些错误,让我知道它们是什么意思? 谢谢你,我比你想象的更感激。 npm ERR! peer dep missing: react@>=17.0.1, required by react-native-web@0.17.1
npm ERR! peer dep missing: react-dom@>=17.0.1, required by react-native-web@0.17.1
npm ERR! peer dep missing: react-native-gesture-handler@>= 1.5.0, required by r
我在编译项目时得到了这个错误。
"./node_modules/react-native-gesture-handler/lib/module/index.js
"export 'ComposedGestureType' (reexported as 'ComposedGesture') was not found in './handlers/gestures/gestureComposition' ".
我真的不知道该怎么办。我有这些亲信
"dependencies": {
我想知道如何将底部选项卡条隐藏在我的堆栈导航器中的特定屏幕中,该屏幕嵌套在物质底部选项卡栏上。
这是我的堆栈导航器的代码
import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import PondScreen from '../screens/PondScreen/PondScreen';
import PondDetailScreen from '../screens/PondScreen/PondDetai
我对反应本机非常陌生,我正尝试在我正在进行的项目中使用react导航。我试图在我的AuthStackParams.ts中使用AuthStackParams.ts,但是我一直收到一个错误:
.../node_modules/@react-navigation/stack/lib/typescript/src/index has no exported member StackNavigationProp
我已经尝试过再次安装@react-navigation/stack,我也尝试过expo start -c,但两者都没有帮助。我希望能就造成这一问题的原因提供任何帮助或建议。谢谢!
AuthSta