سلام وقتتون بخیر
در مورد نصب( جلسه 21) navigation دقیق مثل شما عمل کردم و حتی داکیومنتش همخوندم اما این ارور و میده
خیلی گشتم اما راهکاری واسش پیدا نکردم
حتی همه چیز و از اول نصب کردم
ممنون میشم کمکم کنید
Building JavaScript bundle: error
Error
04:16
Unable to resolve module react-native-gesture-handler from C:\Users\MoHaMMaD ReZa\Desktop\MyApps\node_modules\@react-navigation\stack\src\views\GestureHandlerNative.tsx: react-native-gesture-handler could not be found within the project.
If you are sure the module exists, try these steps:
1. Clear watchman watches: watchman watch-del-all
2. Delete node_modules and run yarn install
3. Reset Metro's cache: yarn start --reset-cache
4. Remove the cache: rm -rf /tmp/metro-*
3 | PanGestureHandler as PanGestureHandlerNative,
4 | PanGestureHandlerProperties,
> 5 | } from 'react-native-gesture-handler';
| ^
6 |
7 | import GestureHandlerRefContext from '../utils/GestureHandlerRefContext';
8 |
سلام دوست من
چک کن در فولدر node-modules فولدری با نام زیر هست
react-native-gesture-handler
اگر نیست نصبش کن
با این دستور نصبش کردم و الان ارورش تغییر کرد
npm i react-native-gesture-handler
الان این پیام و میده
Unable to start your application. Please refer to https://expo.fyi/no-registered-application for more information.
Stack trace:
node_modules\react-native\Libraries\LogBox\LogBox.js:117:10 in registerWarning
node_modules\react-native\Libraries\LogBox\LogBox.js:63:8 in warnImpl
node_modules\react-native\Libraries\LogBox\LogBox.js:36:4 in console.warn
node_modules\expo\build\environment\react-native-logs.fx.js:18:4 in warn
node_modules\react-native\Libraries\ReactNative\AppRegistry.js:200:6 in runApplication
node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:416:4 in __callFunction
node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:109:6 in __guard$argument_0
node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:364:10 in __guard
node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:108:4 in callFunctionReturnFlushedQueue
[native code]:null in callFunctionReturnFlushedQueue
...
Error
08:22
Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider
Stack trace:
node_modules\react-native\Libraries\LogBox\LogBox.js:148:8 in registerError
node_modules\react-native\Libraries\LogBox\LogBox.js:59:8 in errorImpl
node_modules\react-native\Libraries\LogBox\LogBox.js:33:4 in console.error
node_modules\expo\build\environment\react-native-logs.fx.js:27:4 in error
node_modules\react-native\Libraries\Core\ExceptionsManager.js:104:6 in reportException
node_modules\react-native\Libraries\Core\ExceptionsManager.js:171:19 in handleException
node_modules\react-native\Libraries\Core\setUpErrorHandling.js:24:6 in handleError
node_modules\expo-error-recovery\build\ErrorRecovery.fx.js:12:21 in ErrorUtils.setGlobalHandler$argument_0
node_modules\regenerator-runtime\runtime.js:63:36 in tryCatch
node_modules\regenerator-runtime\runtime.js:294:29 in invoke
node_modules\regenerator-runtime\runtime.js:63:36 in tryCatch
node_modules\regenerator-runtime\runtime.js:155:27 in invoke
node_modules\regenerator-runtime\runtime.js:165:18 in PromiseImpl.resolve.then$argument_0
node_modules\react-native\node_modules\promise\setimmediate\core.js:37:13 in tryCallOne
node_modules\react-native\node_modules\promise\setimmediate\core.js:123:24 in setImmediate$argument_0
node_modules\react-native\Libraries\Core\Timers\JSTimers.js:130:14 in _callTimer
node_modules\react-native\Libraries\Core\Timers\JSTimers.js:181:14 in _callImmediatesPass
node_modules\react-native\Libraries\Core\Timers\JSTimers.js:441:30 in callImmediates
node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:387:6 in __callImmediates
node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:135:6 in __guard$argument_0
node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:364:10 in __guard
node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:134:4 in flushedQueue
[native code]:null in flushedQueue
[native code]:null in invokeCallbackAndReturnFlushedQueue
...
ممنون میشم راهنمایی بفرمایید
سلام دوست من
پروژه جدید ایجاد کن و اینبار به جای استفاده از npm از yarn استفاده کن
yarn add @react-navigation/native
expo install react-native-screens react-native-safe-area-context