I cloned a react-native project react-native-multi-language-sample
but when I run it with yarn start, it runs the packager on port 8081 but do not show any QRCode. Do you have an idea about this issue?
It doesn't seem to have been built using Expo, so it will not generate any QRCode to be read on your Expo app.
You might need to run it in your simulator/emulator/device using react-native run-ios or react-native run-android.
Hope it helps
Related
I have been having some trouble finding some straight answers in generating android and ios packages in a pre-existing react-native project.
yarn start works for me to view my project in on the web browser but I am trying to create an ios and android native project from this pre-existing website. Right now I have an empty template project that can be made using these commands on Mac Os after installing yarn:
yarn create react-app website
Now here is what my directory looks like. It is missing the android and ios directories that I will use and then run the command
yarn ios
or
yarn android
Thanks I really appreciate the help. I have never worked with react-native so if the answer is obvious please explain anyways.
yarn create react-app website
It will create website only, if you want to create react native app use
expo init AwesomeProject
or
npx create-react-app my-app
or
npx react-native init AwesomeProject
If you want to give support of web inside your react-native app, you can use react-native-web
I am a beginner in React-native
So i tried to start react-native.. I went to so many youtube tutorials and udemy courses..
At last i set up mu native environment.. start react-native
First i went on Getting Started React-Native site..
then i init awesomeproject to my local storage..
then run react-native run-android..
Emulator displayed correct output..
so i tried to do more projects and tried to learn react-native
so i init new project called "ChatApp"
using
react-native init ChatApp
project was successfully installed.
So again i tried to
cd ChatApp
then
react-native run-android
But still i get that old "awesomeapp"
I dont no what to do
I deleted chache memory and app in the emulator and i deleted sdk in android studio after that i again try to run the command still i get that older app..
I guess you meant cd ChatApp.
Otherwise, every new project you will create with the react-native init command will be exactly the same! If you made some modifications but the UI doesn't update, be sure that there is no other react-native instances running.
i have successfully made and tested the application in expo. but i don't know how to install in physical device and i want to deploy it also. please help me.
while using react-native run-android showing this error.👇👇👇
Android project not found. Maybe run react-native android first?
If you are using expo, you should not have to make the build as a react native project. You can check in the following link the documentation in expo about how to build in Andrdoid/ios and get the apk/ipa:
https://docs.expo.io/versions/latest/distribution/building-standalone-apps/
In a summary, if you have the app.json correctly configured, you just have to run:
expo build:android
Hope it helps
Anyone here managed to integrate viro-react into react-native project? I followed the instruction in
the documentation
After that, I executed the project but not able to run.
This is the error that I got
Even though I run with gradlew installOvrDebug, still it failed.
If your configurations are correct then try running with any of these variants
ArDebug, GvrDebug or OvrDebug
Example running apllication with Augmented Reality:
Android
react-native run-android --variant=ArDebug
iOS
react-native run-ios --variant=ArDebug
I solved this problem with the following method:
Go to the Navigate to the node_modules/react-native/local-cli/runAndroid/runAndroid.js file and edit the lines that include installDebug change it to installArDebug
Go to the terminal and npm start
Open another terminal and react-native run-android
*Make sure that your device is plugged in and that you have android studio sdk paths in your environment variables. This should do the trick!
Trying to run react-native run-android just outputs:
Scanning folders for symlinks in C:\Users\Matt\sites\rg-calendar\node_modules (136ms)
Any ideas?
Me too had this problem,and i solved it by simply closing and opening the terminal after that i was able to successfully execute the react-native run-andorid
Sorry for being late, but hope it helps somebody.
It appears there are two ways to create a react native project.
create-react-native-app
react-native init
The first method is used when you want to use Expo to run your app, and the second is used when you want to run the app using react-native run-android. When I use method 1, trying to run react-native run-android behaves the same way yours did in that screen shot. Using method 2 allows me to run the app using the aforementioned method, which is what you tried to do.
try update with:
npm i
and if doesn't work check what file(s) or folder(s) delete or edited wrongly !
if problem is about connecting to the real device first check the adb and adb devices , then try this code:
react-native run-android --deviceId {YOUR DEVICE ID IN ADB DEVICES}