Using a remote MacBook for building React Native apps with XCode - react-native

I have a Windows-machine and would like to use React Native for developing cross-platform UWP (so no Expo) and iOS apps. I also have a MacBook that I would like to use as a build host, like you can do with Xamarin.
Can remote build and iOS simulation with XCode be done using React Native and if so, how?

You can use Jenkins to turn your Mac in a build server. If you need the simulator you could use a screen sharing program like VNC.

Related

Can I use the same codebase for both a React Native macOS app and a React Native Windows app?

I am trying to create an app using React Native that runs on iOS, Android, macOS and Windows. An advantage of being able to use React Native is that you can share code between platforms.
I am following the setup guides for React Native macOS and Windows, but in the guides, they guide you through creating a new app from scratch for each platform. As I want to use the same app, so I don't have to write the same code twice, I create the macOS app following the guide. Then, in this app, I use the command npx react-native-windows-init --overwrite from the Windows guide to initialise the Windows platform. But when I then go to run the macOS app using the command npx react-native run-macos, I get the error:
Cannot find module 'metro-config/src/defaults/exclusionList'
and
no bundle URL present
One thing I find strange about the setup guides is that for macOS it tells you to use React Native 0.63 and for Windows 0.66. I used 0.66 for both, maybe this is the problem. But if it is, and each platform requires different versions of React Native, how can I use the one app / codebase for both platforms? This goes against one of React Native's core premises:
Create platform-specific versions of components so a single codebase can share code across platforms.
Is it possible to create a single app for both desktop platforms like you would with iOS and Android, and if so, how?
Yes, you can. You will have to create a mono repo
Or you can use mono repo boilerplate. Here is a link to it
https://github.com/mmazzarolo/react-native-universal-monorepo

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.

Is it possible to build a android and iOS app using React Native in Windows Laptop?

Is it possible guys? As I know I can use the React Native eusing Windows Laptop but I can't build or produce a mobile ios app using Windows laptop?
Also what are the conflicts when developing android app and iOS app using Reactive Native
You can develop your iOS and Android app completely on windows, but it is correct, that you need a Mac to build and deploy it for iOS app. You could use a service like https://www.macstadium.com/ for this step. They offer access to macs on a monthly basis.
I'm working with RN since 2015 and I only found a few "conflicts":
1.) You have to double check styling between iOS and Android, since a few properties behave little different (like overview). But the RN team is constantly working on this and it gets better and better.
2.) If you need access to native device functions like InApp purchase API, you have to find Libraries, which work on iOS and Android.
All in all RN is a very good framework for writing cross platform apps. You should give it a try :-)

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.