0

I understood that when you code in React, it allows you to use your code both for Android and for iOS. However, when I go to the main site it says that I need a Mac in order to code iOS applications.

Can someone explain the meaning of this, please?

3
  • Apple only lets you develop for iOS on a Mac. Commented Dec 25, 2016 at 9:58
  • So how does React work? I thought you can cross-platform... Commented Dec 25, 2016 at 10:32
  • It is cross-platform, but you still need to compile native components. Commented Dec 25, 2016 at 10:33

2 Answers 2

1

You need a mac, with xcode to build your app and test it on iOS devices.

The code is shared and compatible as long as you use the react native components.

Sign up to request clarification or add additional context in comments.

4 Comments

Yes but Xcode uses Swift or Objective-C, isn't React programmed in other compiler?
React = JavaScript, ReactNative = Bridge between native (Java, Objective-C, Swift) and JavaScript.
Thanks, that helps a lot can you please explain what makes a language Native?
In this case native is Java for android and Objective-C / Swift is for iOS. Additionally, Javascript is a Scripting language not a general purpose programming language like the others.
0

This will give you a clear idea.

enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.