Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you build React Native apps (Android app) on Ubuntu?

As I can see here you need OS X to build apps with React Native. That is probably because they used it at first to create only iOS apps. Now it's possible to create Android apps with React Native but they still require OS X as development platform which doesn't make sense to me. Is there any way to create Android apps using React Native on Ubuntu OS or any other Linux?

like image 720
Drag0 Avatar asked Sep 21 '15 14:09

Drag0


People also ask

Can I run React Native in Ubuntu?

To efficiently install and set up React Native on your Ubuntu device, you will need to install the following: Android Studio / VS code. Android SDK. Install JDK.

Can you build Android apps with React Native?

Yeah, with React Native you can build mobile apps that can run on iOS and Android. This is one of the great benefits of React Native. Before Facebook created it, you had to build your app twice and with different code: one for iOS using Swift or Objective-C and one for Android using Java or Kotlin.

Is it necessary to install Android Studio for React Native mobile application?

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.

Can React Native build mobile app?

React Native is an open-source mobile application framework used to develop apps for Android, Apple, and Windows platforms; and for the web. Develop native apps for Android and iOS using React and JavaScript to create a single codebase that can be shared across platforms.


2 Answers

Update 2: I've been developing React native apps on Ubuntu for some time now, without any issues.

Update 1: It's almost possible on linux and windows now. Check this doc page: link

Old answer: It's already almost working, from the issue shared in kzzzf's answer:

Everything works on Linux except: react-native run-android can't open a new shell window, you need to use react-native start. Will be fixed in next release. Debugging in Chrome currently relies on an AppleScript to launch Chrome. There's a PR to replace that.

like image 199
Nick Avatar answered Sep 17 '22 15:09

Nick


Building on linux and windows is not officially supported although there are people in the community already sending pull requests that will allow to do so (main obstacle is the fact of using apple-script and calling to shell scripts from node - from react-packager and from react-cli). Main task for tracking those efforts is here: https://github.com/facebook/react-native/issues/2693

like image 38
kzzzf Avatar answered Sep 20 '22 15:09

kzzzf