Debug School

rakesh kumar
rakesh kumar

Posted on

How to run all dependencies from an existing React Native project

How to run all dependencies from an existing React Native project in a new project

Step1

dependencies: All runtime libraries your app needs.

devDependencies: Tools and libraries needed for development and building (like Babel, Jest, ESLint, Metro, etc.).

scripts: Useful npm scripts for building, running, testing, and linting your project.

engines (optional): Specifies Node.js or npm versions required for your project, ensuring compatibility across environments.

Image description

Open android/app/build.gradle
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
Enter fullscreen mode Exit fullscreen mode

Step2

npm install
Enter fullscreen mode Exit fullscreen mode

step3

npx react-native run-android
Enter fullscreen mode Exit fullscreen mode

Top comments (0)