Can I build both iOS and Android apps using react native on Ubuntu Linux? - react-native

So I just started out to learn react-native but I found out that to build both iOS and Android requires OS X. I use Ubuntu but I haven't heard or read from somewhere about Linux writing react-native applications.

You can't build iOS app without XCode. Maybe you can do this using virtual machine.

Related

React Native developing on Windows for Android and ios

i'm little bit confused about the installation of COCOAPODS and the installation gydes for react-native libaries.
If I developing on Windows for iOS and Android. Do I have installing the COCOAPODS?
And what about this: https://reactnavigation.org/docs/getting-started/
Do i have run the following command: npx pod-install ios
Or is this only if I developing on Mac?
Thanks for all replies.
Cocoapods is only needed when developing for iOS. You do not need to run npx pod-install ios when developing for Android. Android has its own methods for linking libraries.
While you can use Cocoapods on Windows (see here), again, it's only for when you are developing for iOS.

Develop with react native under debian 9

I'd like to know how I can develop using linux (for example debian 9) and use my iPhone to see what I am developing.
I don't want to use macOS to do this and the best would be to see the result under Android and iOS without simulator, directly on phones.
Thanks for help !
If you want to stuck with Linux OS. You can test you app on android variant only (on both emulator or physical device)
In order to test your app on iOS you need to have a mac machine to generate / build the project.
If you don't have a mac system you can go with Expo SDK.
Expo is a free and open source toolchain built around React Native to help you build native iOS and Android projects using JavaScript and React.
You can easily get started here

How to build iOS apps using react- native on window 10

I am new in react-native. I want to build an android and iOS application by using react-native. I used the Windows 10 to build the react-native project and it is ok when I run the android app using Android SDK or real device but cannot on iOS devices. I have researched this problem and know that I need to use macOS to run the iOS apps. Is it possible to build iOS apps using any iOS simulator on Windows 10?
for exporting ios apps you must have a MAC system(X-code) or you can do it in windows with VMvare that have a virtual Mac system ,and in next step you must have a developer account then other steps are simple :)
The best way to develop in react native if you did not have access to MAC OSX environment is to use EXPO as it will ensured the app could run on android and iOS.
The second option would be using private cloud Mac like MacStadium.

How to build react native app on windows

Is it possible to build app in React Native using Windows instead of linux ?
I am a really beginner. On the official website ReatNative we can read:
Assuming that you have Node installed, you can use npm to install the
create-react-native-app command line utility:
npm install -g create-react-native-app Then run the following commands
to create a new React Native project called "AwesomeProject":
create-react-native-app AwesomeProject
cd AwesomeProject npm start
But how to do that on windows ?
There is no information about that
Take a look at this page - Getting Started
Please note that you have to select Building Projects with Native Code Tab. Then you can select Windows and Android
On Windows you can only develop react native app for Android. Then if you want to build apps for iOS you need a IDE called Xcode. And Xcode is only available on mac OS. Other way to build apps for iOS is creating a mac OS virtual machine that runs on Windows. your pc / laptop must have enough computing power to run it. I think 8GB RAM, and SSD and a Intel i5 7x series would be enough.
For installing Node.js and other tools you need for your development on Windows you have to use the command prompt. That is what you was asking for. I hope it helps you. Let me know if you have success.
Take a look here
How to use the Windows command line
Getting Started with React Native Development on Windows

Proper Development Environment For React Native

I want to write an application targeted at both iOS and Android. Is it possible to develop a React Native app on Windows using a network connected Mac? For example, using Visual Studio Code on Windows and debugging on a network connected Mac?
I'm using Atom and IDE to make react-native app.
To test on iOS, maybe you could use this but the best would be to have a iPhone with you, to install your app and use Code Push to auto update the app on your phone. The other solution would be to install an macOS Emulator on your computer.