I'm totally newbie in React_Native
and trying to learn more about it. I tried this tutorial to learn how to work with Studio and React-Native
. But still I'm not getting it. How to code in studio and link it with js
. Did any body have any idea how to do it or tutorial links or references.
You will need Node, the React Native command line interface, a JDK, and Android Studio. While you can use any editor of your choice to develop your app, you will need to install Android Studio in order to set up the necessary tooling to build your React Native app for Android.
React Native is the 2nd most used cross-platform mobile app development framework with 38% market share. React Native is till a popular choice even in 2022. You've probably seen React Native in operation if you've run the official Facebook app on iOS or Android.
IDE. As I mentioned above, there's no way we can use Android Studio for React Native development. We need a substitute. React Native can be developed probably in any modern text editor available out there (Atom, VS Code, Sublime Text, Brackets, etc.)
Reinstall the app Many of the times the issue happens it that when you try to install the app from the android studio, the app did not get installed correctly. In that case, the app keeps crashing. To resolve this problem, you need to reinstall the app on your phone.
The tutorial seems to be pretty clear actually. What do you mean by
But still I'm not getting it. How to code in studio and link it with js
If you are talking about the way you link the JS, it is done through an activity, calling your js file. If you are asking where to put your JS files, the tutorial tells you to put them in your root, but you are free to do it in other way. If you ask how to edit your code through Android Studio, you can open the js file as any other file in order to code inside it.
It is possible that my answer is not what you expected, in this case, try to be more precise about what you want us to explain to you, I did not really get it.
If you successfully installed what you need to start developing you can try the tutorial from the React Native docs
In case you haven't finished the setup yet you can go through the installation on Getting Started or start developing with the web application in the tutorial, you just need your browser. Then later you can produce an Android app with the code from that tutorial.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With