Steps to be followed:
- Set to http://127.0.0.1 in the env file of the Laravel project.
- Start the service from the Laravel backend.
- Configure in the API URL as “http://10.0.2.2:8000/api” inside your React Native mobile application project wherever its needed.
- Run a Postman script to fetch the data from the backend as per the Laravel credentials.
- Open a New Terminal in your React Native mobile application project.
- Open the emulator from the android studio.
- Run this code to start the react native services -> “npm start”
- Open a New Terminal in your same React Native mobile application project.
- Run this code to see your working project in your android emulator -> ”npm run android”.
SPECIAL NOTE : “The Data should be first fetched from the Laravel API, before starting npm.