This is a general error message, you may have encountered during the react native application development. So In this tutorial we are going to provide solution to this issue.
Issue Description :
Follow the below steps to solve above issue :
< OR >
you can create folder by using command as well.
Command :
< OR >
Also you can combine last two command in one, In this case case you have to execute command only once.
< OR >
You can automate the above steps by placing them in scripts part of package.json like this:
If everything is set up correctly, you should see your new app running in your Android emulator shortly.
Issue Description :
Unable to load script from assets index.android.bundle on windows
Follow the below steps to solve above issue :
Step-1 : Create "assets" folder inside your project directory
Now create assets folder inside the project directory that is "MobileApp\android\app\src\main". You can manually create assets folder :< OR >
you can create folder by using command as well.
Command :
Step-2 : Running your React Native application
Lets run the below command to run the react native application in emulator or physical device.- Switch to project directory.
- Run the below command that helps to bundle you android application project.
- Run the Final step to run react native application in emulator or physical device.
< OR >
Also you can combine last two command in one, In this case case you have to execute command only once.
< OR >
You can automate the above steps by placing them in scripts part of package.json like this:
If everything is set up correctly, you should see your new app running in your Android emulator shortly.
No comments:
Post a Comment