React Native
React Native

5.5K
4.5K
891
Swift
Swift

4.8K
3K
1.1K
Add tool

React Native vs Swift: What are the differences?

Developers describe React Native as "A framework for building native apps with React". React Native enables you to build world-class application experiences on native platforms using a consistent developer experience based on JavaScript and React. The focus of React Native is on developer efficiency across all the platforms you care about - learn once, write anywhere. Facebook uses React Native in multiple production apps and will continue investing in React Native. On the other hand, Swift is detailed as "An innovative new programming language for Cocoa and Cocoa Touch". Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Swift is ready for your next iOS and OS X project — or for addition into your current app — because Swift code works side-by-side with Objective-C.

React Native can be classified as a tool in the "Cross-Platform Mobile Development" category, while Swift is grouped under "Languages".

"Learn once write everywhere", "Cross platform" and "Javascript" are the key factors why developers consider React Native; whereas "Ios", "Elegant" and "Not Objective-C" are the primary reasons why Swift is favored.

React Native and Swift are both open source tools. It seems that React Native with 78.3K GitHub stars and 17.5K forks on GitHub has more adoption than Swift with 48.2K GitHub stars and 7.71K GitHub forks.

Slack, Lyft, and Zillow are some of the popular companies that use Swift, whereas React Native is used by Yahoo!, hike, and Webedia. Swift has a broader approval, being mentioned in 979 company stacks & 526 developers stacks; compared to React Native, which is listed in 701 company stacks and 781 developer stacks.

What is React Native?

React Native enables you to build world-class application experiences on native platforms using a consistent developer experience based on JavaScript and React. The focus of React Native is on developer efficiency across all the platforms you care about - learn once, write anywhere. Facebook uses React Native in multiple production apps and will continue investing in React Native.

What is Swift?

Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Swift is ready for your next iOS and OS X project — or for addition into your current app — because Swift code works side-by-side with Objective-C.

Want advice about which of these to choose?Ask the StackShare community!

Why do developers choose React Native?
Why do developers choose Swift?

Sign up to add, upvote and see more prosMake informed product decisions

What are the cons of using React Native?
What are the cons of using Swift?
What companies use React Native?
What companies use Swift?

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with React Native?
What tools integrate with Swift?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to React Native and Swift?
Flutter
Flutter is a mobile app SDK to help developers and designers build modern mobile apps for iOS and Android.
Xamarin
Xamarin’s Mono-based products enable .NET developers to use their existing code, libraries and tools (including Visual Studio*), as well as skills in .NET and the C# programming language, to create mobile applications for the industry’s most widely-used mobile devices, including Android-based smartphones and tablets, iPhone, iPad and iPod Touch.
NativeScript
NativeScript enables developers to build native apps for iOS, Android and Windows Universal while sharing the application code across the platforms. When building the application UI, developers use our libraries, which abstract the differences between the native platforms.
React
Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
Electron
With Electron, creating a desktop application for your company or idea is easy. Initially developed for GitHub's Atom editor, Electron has since been used to create applications by companies like Microsoft, Facebook, Slack, and Docker. The Electron framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS. It is based on io.js and Chromium and is used in the Atom editor.
See all alternatives
Decisions about React Native and Swift
No stack decisions found
Interest over time
Reviews of React Native and Swift
Avatar of Bessalitskykh
Software Development Consultan at MLSDev Inc.
Review ofSwiftSwift

The performance of Swift is almost the same as that of C++, which is considered the fastest in algorithm calculation arithmetics. Apple had this idea in mind and worked to improve the speed of Swift. For example, Swift 2.0 has beaten C++ in several computation algorithms, such as Mandelbrot algorithm. Objective-C is slower because it contains C API legacy.

Swift is faster than Objective-C, because it removed the limitations of C language and has been improved with the help of advanced technologies that were unavailable when C was developed. As mentioned by Apple, Swift was originally designed to operate faster.

Despite the fact that languages are different, they both integrate, and work with Cocoa and Cocoa Touch APIs, for all Apple platforms. Therefore, a regular app-user would not recognize the difference in operating speed between Objective-C vs Swift. Speed also depends on a programmer’s level and capabilities, since a slow app can be written in Swift as well.

Learn more here https://mlsdev.com/blog/51-7-advantages-of-using-swift-over-objective-c

Avatar of tonyxiao
Economics
Review ofReact NativeReact Native

Native iOS developer here. One of the most important thing React Native managed to accomplish is that it created a better single-platform development experience than the platform owner themselves did. It's faster and easier to develop a react native app than it is to develop an iOS app. And remember that react native is at the end of the day still native. So native views, native components, native modules. You get to pick and choose how much you want to be in JavaScript and how much you want to be in native.

Avatar of Bessalitskykh
Software Development Consultan at MLSDev Inc.
Review ofSwiftSwift

Its performance approaches the one of C++ which is considered the fastest algorithm calculation arithmetics. And Apple strives to improve the speed of Swift. Learn more here https://mlsdev.com/blog/51-7-advantages-of-using-swift-over-objective-c

How developers use React Native and Swift
Avatar of Lawrence Cheuk
Lawrence Cheuk uses SwiftSwift

iPhone app, a new born language, it may good but the IDE, xcode is bad compare with Visual Studio. It just like a baby. playground can only use without connect to other library...you can not do a simply refactor of renaming a variable. You can go to definition and find reference, but you can not go to implementation....I should write them on xcode not here basically it is not the fault of swift, but it tightly to it, unless you want to use a notepad to write it.

Avatar of Kurzor, s.r.o.
Kurzor, s.r.o. uses React NativeReact Native

React Native is great in that it reduces the overhead of writing native code based on a web app. If written in a good style, Redux part of the app can often just be copied or shared in the Native app - and it just works! What a timesaver.

Avatar of Refractal
Refractal uses SwiftSwift

Most of our newer apps are written completely in swift, with our older ones and some special cases using a mix of Swift and Objective-C, but with Swift 2, the language is pretty much a must-use. "guard" is <3.

Avatar of Ryan VanBelkum
Ryan VanBelkum uses React NativeReact Native

The framework used to write the mobile apps in this project. I've chosen this because of the "write once run all" (ios and android) mentality.

Avatar of Flutter Health Inc.
Flutter Health Inc. uses SwiftSwift

Flutter is coded with Swift v.2.3 and can be run with Xcode v.8.2.1. To launch in Xcode 9.3, the code needs to be migrated to Swift 4.1

Avatar of AmericanBibleSociety
AmericanBibleSociety uses React NativeReact Native

We are not currently using this product but we have very high interest in learning and using this for mobile apps.

Avatar of Maxim Ananov
Maxim Ananov uses SwiftSwift

Most of the app code was gradually rewritten in Swift for better performance and code maintenance.

Avatar of JINJA Ltd.
JINJA Ltd. uses SwiftSwift

Our native iOS app is built on Swift, and most of the basic function is still written in Swift

Avatar of JINJA Ltd.
JINJA Ltd. uses React NativeReact Native

New features of our app are developed on React Native, so we could maintain a small dev team.

Avatar of Tana
Tana uses React NativeReact Native

100% of our mobile codebase is shared between iOS and Android. Using along with TypeScript.

How much does React Native cost?
How much does Swift cost?
Pricing unavailable
Pricing unavailable