I am currently learning mobile app development by using react native. I am using 'EXPO CLI' to simulate the code on my device/emulator. However, after reading the react-native official documentation, I realize that the steps required 'Android' folder in my project that does not exist because I did not run 'npm run eject'.
May I know is there any source on how to install my app into my device locally?
(Meaning no longer running the app through EXPO).
Related
My name is fernando and I'm studying mobile development via React Native
I'm having trouble using the React Native CLI, as I couldn't solve this problem I decided to do all the steps from the recommended https://reactnative.dev/docs/environment-setup again to run the code.
I uninstalled Java, node, Android Studio, JDK and gradle.
I installed Java, Node and Java using Chocolatey as recommended by the documentation, I strictly performed all the steps requested but I cannot install the application on the simulator or on the cell phone via USB
Starts NPM START normally without errors.
But when starting NPM RUN ANDROID it gives me the following error
enter image description here
OBS:
The project in question in the image, has no code, it was only opened using npx react-native init AwesomeProject
Another observation that I can run and program using React native EXPO GO
It works without errors and I can run both in the simulator and in USB
Thank you and I would appreciate it if someone could help me
I'm choosing a cross platform framework to create an app, React Native would be my first choice because I'm already proeficent with React and it will allow full code sharing with my Deno based back-end but here a problem arises, I don't have a Mac and it seems that the oly way to develop React Native apps without a Mac is by using Expo, sadly it can't be an option for me since I need have very strict privacy requirements to follow and by these the telemetry which Expo apps sends to Expo team is not acceptable.
Considering that my app would use very few device native features (just CRUD operations on application local storage and QR code reading) which are already covered by cross platform modules it would be possible to write my app on a Windows laptop, debug it on an Android device, build it using a free CI/CD platform which includes Linux and Mac agents to get working Android and iOS packages with can be distributed to the respective stores?
As you can see in React Native documentation, you can write code for both platforms on Windows machine, but for building an publishing IOS application, you must use Mac machine
A Mac is required in order to build your app for iOS devices. Alternatively, you can refer to our environment setup guide to learn how to build your app using Expo CLI, which will allow you to run your app using the Expo client app.
Read doocs here: Running On Device
I have an app made in Ionic5 framework with the support of Angular, when I run ionic serve --lab, the android app works without problem but the problem is that when I export the project to Android Studio with (ionic capacitor copy android) and I run the app on my device suddenly crashes and stops.
I have been looking for information but I have not found any useful data. My question is more generic than this platform is used to. What error detecting techniques I should use (Android Studio, npm vulnerabilities) and what are some typical cases that generate this error?
I let some posible useful project data:
I use Firebase for database and back-end services.
NPM warn me due to the fact that I have 10 vulnerabilities.
Ther could be a number of reasons for this.
Try running opening chrome://inspect/#devices where you can select your device and see all console logs.
Also try syncing your gradle files in android studio
As a beginner in react native framework. I was able to build a small app and installed on my ios physical device via xcode. But this app doesn't work when I'm away from my laptop.
Is there any way I can always run this app on my device 7/24 even when I'm away from the network and my laptop (Without publishing in app store)?
Personal app and i need it on my device only.
Thank you,
Click on project then on menus open "product" > schema >edit schema then change build configuration "debug" to release.
Now run your project. It will run even after you are away from laptop.
Is there any way to develop a React Native app for Android without installing Android Studio ?
On Ubuntu 18.04 the apt command proposes a lot of android packages: android-sdk, android-sdk-platform-tools etc...
What do I need exactly to get React Native working properly ?
Please don't use expo or another SDKs of react native. React Native CLI is recommended everywhere because its performance is not comparable to expo and it is much more lightweight! Android Studio is just an IDE! If you setup your android development environment correctly there is no need to install Android Studio IDE (This is for experts!) but it is recommended to install for amateur users.
If you don't want to use the Android studio, you can take advantage of the Expo. Expo is the best way to assist React-native. You can run the app without the Android studio, and when you refresh, you can see the modified code right away.
Look at this official document and follow it slowly.
you don't need Android Studio at all, if you are using react native cli you can install it on your phone and run it there.
An attempt of solution to use react native without android studio and without expo is to build directly in your device.
you must install adb first by following this link install-adb-fastboot-on-ubuntu 18.04
and then you should follow this link react-native running-on-device
It will help you.
I'm using usb cable to install debug apk in my phone (react-native run-android). I put my phone in the same network (WIFI) with my machine (server) and configure the server address and port to debug remotely in the phone. After that i remove the usb cable.
In short everything is explained on the link above