REACT-NATIVE
Hey aliens WhatsUp, it's a long time since I am back with new content. This time I came up with a very interesting and trending concept these days. I want to share the knowledge that I gained in the fastest-growing framework react-native which was a game changer in app development.
My name is Sivasai Gangala, I am a React-Native-developer, who loves to develop and build solutions using AWS services.
Running the App on a Physical Android Device
Nothing is better than building apps with JavaScript. Unless you are building mobile apps. JavaScript is for building web apps and using it to build native mobile apps used to not possible. It was hard for any web developer to dive into building native mobile apps. They have to learn Java, Objective-C …, or any programming language that was used for this purpose. But Facebook gives us a cross-platform framework to build hybrid apps with javascript called REACT-NATIVE

Enabling USB Debugging
USB debugging makes it possible for the Android Debug Bridge (ADB) to push APKs to your phone.
To enable USB debugging, you’ll need to unlock the Developer Options first. To do that, go to Settings on your Android device and navigate to the About Device section. In the About Device section, tap on the Build Number 10 times or until you see the message “You are now a developer.”
With the Developer Options enabled, you should find a Developer Options item on the settings screen or under Advanced/System Settings. From there, turn on USB debugging.





Running the App
Connect your phone to the computer using a USB cable. After that, go back to the terminal (make sure your project directory is set as the current directory), then run the following command:
Open your terminal
$ adb devices
Forward requests from your device
$ adb reverse tcp:8081 tcp:8081
Run it
npm run android
That's it we got our debug apk in our mobile
Conclusion
In this article, we learned how to build a debug apk using React-native in mobile. If you guys have any doubts or are stuck somewhere feel free to mention them in the comment section.
If you find this article useful or if you see any improvements are needed, please do let me know below in the comment section. If you enjoyed this post, I’d be very grateful if you’d help it spread by emailing it to a friend.