PhoneGap vs React Native: What are the differences?
What is PhoneGap? Easilily create mobile apps using HTML, CSS, and JavaScript. PhoneGap is a web platform that exposes native mobile device apis and data to JavaScript. PhoneGap is a distribution of Apache Cordova. PhoneGap allows you to use standard web technologies such as HTML5, CSS3, and JavaScript for cross-platform development, avoiding each mobile platforms' native development language. Applications execute within wrappers targeted to each platform, and rely on standards-compliant API bindings to access each device's sensors, data, and network status.
What is React Native? 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.
PhoneGap and React Native belong to "Cross-Platform Mobile Development" category of the tech stack.
Some of the features offered by PhoneGap are:
On the other hand, React Native provides the following key features:
- Native iOS Components
- Asynchronous Execution
- Touch Handling
"Javascript" is the primary reason why developers consider PhoneGap over the competitors, whereas "Learn once write everywhere" was stated as the key factor in picking React Native.
PhoneGap and React Native are both open source tools. It seems that React Native with 78.8K GitHub stars and 17.6K forks on GitHub has more adoption than PhoneGap with 4.15K GitHub stars and 974 GitHub forks.
According to the StackShare community, React Native has a broader approval, being mentioned in 719 company stacks & 809 developers stacks; compared to PhoneGap, which is listed in 86 company stacks and 36 developer stacks.