react-native-gesture-handler package error on new app - reactjs

Hey I'm new to react native :) I get this error once I added react navigation to my app
I try to use navigate in react-native.. I added : npm install --save react-navigation
but it gives me an error like this :
\node_modules#react-navigation\native\src\Scrollables.js: Module
react-native-gesture-handler does not exist in the Haste module map

You need to install react-native-gesture-handler as well separately in the project dependency list and link it too with native as well. Please refer to this doc.
use the following command to install
if you are using yarn
yarn add react-native-gesture-handler
if you are using npm
npm i -s react-native-gesture-handler

Related

react-native-gesture-handler module error

ERROR [react-native-gesture-handler] react-native-gesture-handler module was not found. Make sure you're running your app on the native platform and your code is linked properly (cd ios && pod install && cd ..)
Trying to run it on android.
I resolved this issue by adding this:
npm install react-native-gesture-handler
npx react-native link react-native-gesture-handler

React Typescript: It looks like you're trying to use TypeScript but do not have typescript installed

I want to create a React application and I want to use a typescript in this application, at first I went to the React website in order to create an application using typescript and I found that I had to put this instruction in the terminal first:
npx create-react-app my-app --template typescript
And when it finished installing, I put it in the terminal:
npm start
But I got this error:
It looks like you're trying to use TypeScript but do not have typescript installed
I opened the terminal and wrote this instruction:
npm install
then i run the app:
npm start
But the error is still there
How can I solve the problem?
I solved my problem with the following instruction:
npm install --save typescript #types/node #types/react #types/react-dom #types/jest
or
yarn add typescript #types/node #types/react #types/react-dom #types/jest
have you tried
npm install -g typescript
yes i tryed but still with error
Have you tried
npm run start
Consider upgrading Next.js 11 to 12 or to latest version. Also, you need to upgrade types to latest for react and react-dom. Here is a brief documentation about that:
https://nextjs.org/docs/upgrading#upgrade-nextjs-version-to-12

Cannot resolve 'react-native'

I am trying to import react-native module into my react app. When I start my app server using 'npm start', I get the following error :
Module not found: Can't resolve 'react-native'
I have done following steps:
cleaned npm cache using 'npm cache verify'
deleted node_modules
rerun the command 'npm install'
checked package.json file if it has react-native dependency listed
Nothing worked for me. Please help!!
Try to recreate your app using the react native CLI. Use the command npm install -g react-native-cli, then use react-native init ProjectName and after that try to run the project.
If you cannot create a new app for any reason, try to install the react-native-cli anyway and try to run react-native run-android or react-native run-ios (depending on the plataform you want to use as a tester_ instead of npm start.

First React application setup: Webpack has been initialised using a configuration object that does not match the API schema

I am trying to setup my first react application. I installed all the npm packages required. But getting this error.
npm uninstall webpack --save-dev
npm install webpack#2.1.0-beta.22 --save-dev

NPM packages could not able to install it in React -native project

I am creating a project in react-native, As a part of it, I am trying to install an npm package
Ex: $ npm install --save is-reachable
After installing the NPM package, I am trying to run react native project
'react-native run-ios'
I am getting the following error:
Help me to get out of this issue. Without npm package install, I could move to proceed further
OS is a node module, React Native doesn't rely on node, but on V8 and Safaris runtime for the Javascript runtime. This means you can't use the clean-stack node module in react-native.

Resources