Building Hybrid Mobile App Using Javascript Frameworks: Thet Khine
Building Hybrid Mobile App Using Javascript Frameworks: Thet Khine
Native App
Native app use platform specific programming language (Objective-C or Swift for iOS), Java or
Kotlin for Android.
Used Platform specific development tools.
Need to write separate app for each platform.
Hybrid App
They utilize web technologies such as JavaScript, HTML5, and CSS but also provide access to
native platform features.
No need to write separate app for each platform.
App for each platform can be generate from a single codebase.
Hybrid vs Native
Source:Internet
Why Hybrid
Ionic
React Native
Cordova
PhoneGap
NativeScript
Framework7
How Hybrid App Work (Cordova Based
App)
Ionic , PhoneGap, Framework7 are base on Cordova.
Cordova used the WebView for user interface.
So, Cordova based application are essentially HTML5 application
with access to native platform API.
When Cordova based application need access to platform API,
JavaScript Interface is used.
Everything in UI is rendered as HTML based view in Cordova
based application.
Business code are written in JS.
React Native Approach
Source:Internet
What you need to know for Ionic
TypeScript
Angular 2+
RxJS
HTML5 +SASS
Flexbox
Build tool for android and iOS
Pro/Con of Ionic
Pro
Easy to learn
Rapid Development with hot reload
UI markup is easy to build due to the use of HTML5+SASS
Most of the UI component are already included in the Ionic, no extra library needed.
Can share code based for both platform
Con
Performance
UI is not attractive as native UI.
React Native
React
JSX(React native style element are not the same as CSS)
Flexbox
Redux
React Native Router
Knowledge about build tool on both platform
How React Native Works
Source:Internet
Pro/Con of React Native
Pro
Better performance
True Native UI view
Ease of development & Hot reloading
Can share code base for both platform
Con
Need to integrate third party UI framework such NativeBase.
Need for an expertise from a native developer for some platform-specific modules
Ionic vs React Native
Source:Internet
Thanks you all.