Unexpected Identifier. react-native run-android - react-native

I am following this guide to create the project with native code (https://facebook.github.io/react-native/docs/getting-started.html). But I am getting this error after the run command:

This error is a new bug in react-native 0.56 that affects Windows users. To solve it you can create a project with another react-native version:
react-native init --version="0.55.4" MyNewApp
You can see more infos in this GitHub issue.

Related

Why expo is showing Loading DevTools Error

My react native app is showing error when using expo-cli:
Error loading DevTools
,No scheme specified for development client
picture:
I am using expo version 44 And react-native version 0.64 ,also I have used expo init in order to create my project.
How can I fix this error?
You'll have to run:
expo install expo-dev-client
Then, for Android:
expo run:android
or for IOS:
expo run:ios
Since config plugins will let you customize your project from JavaScript without ever needing to directly modify XCode or Android Studio projects.
More details here
https://docs.expo.dev/development/getting-started/

React-Navigation and installation error and first-usage

I am new to react-native or you can say new to React and I am working on react-native navigation I have installed all the required libraries as instructed in https://reactnavigation.org/docs/getting-started but when I am running my code it is giving an error as '#react-navigation/native could not be found within the project or in this directories.' What should I do is there any way to get started with my code? Help me
If you have installed your app following the react native cli guide you might want to try running
gradle clean
in your android folder und then try to run your app in the emulator again.
On my first steps with react native I stumpled upon the same issue. :-)

How to solve issue when running new project in react native in android device

I'm beginner for react native,I'm create a new project in react-native some time working fine,many time showing following errors in emulator or device,please help to fix the issue,
!http://prntscr.com/o9zv7t
these error to occur many time ,I dnt know what is the problem
!http://prntscr.com/oa016k
The following version are installed React native
react-native-cli: 2.0.1
react-native: 0.59.10
node v9.11.2
I'm using ubuntu os
The first error occurs when your device lost connection from the system for that you just need to run react-native run-android and the connection will establish again.
The second error you just need to expand the limit of max_user_watches by running this command:
fs.inotify.max_user_watches=524288
for more detailed info go here

How to fix React-Native Error 'could not unzip gradle-5.4.1-all.zip'

I have created a project HelloWorld in react native by using react-native init HelloWorld
When I run the project by using react-native run-android command, i am facing error
could not unzip gradle-5.4.1-all.zip
I have tried the following
1.updated react native
2.wipe the data from Emulator.
To resolve this kind of error the following steps are used
Open My computer.
Navigate the following folder
C:\Users\UserName.gradle\wrapper\dists
Delete the 'gradle-5.4.1-all.zip' folder
Run React-native project by using react-native run-android command.
The system will download updated gradle-5.4.1-all.zip file so
internet connection must be ON

Could not find the expo package in your project - react-native link

I have created an expo project using expo-cli and ejected it to regular native-script project, but while running react-native link I am getting this message:
Could not find the "expo" package in your project when configuring the
packager while running react-native link
can someone please help me resolving the issue.
Thanks in Advance.