- React Native the same code is used for deployment both on iOS and Android platforms.
- It means that it’s possible to get an app for two platforms at once — iOS and Android.
- React Native shortens the development cycle, makes it possible to deliver products in the fastest way. Development of apps is adapted to the hybrid environment and has native results.
- The framework uses famous ReactJS UI library developed by Facebook for user interfaces and apps creating and implements ReactJS under the hood. It transfers virtual DOM, improved app performance, and more simple programming processes from ReactJS.
- A built mobile app is smoother and is loaded much faster than a classic hybrid one. As JavaScript interacts asynchronously with the native environment, UI feels fluid and is highly responsive.
- A single code base is deployed to multiple mobile operating systems. Components are reused anytime at any level into existing code without you rewriting it and recompiling the app.
Implimenting Push-notification in React-native Note: To send push notification you have to implement firebase first for implementing firebase check my previour blog 1. Install Package = @react-native-firebase/messaging, 2.FcmService.js import messaging from '@react-native-firebase/messaging' ; import { Platform } from 'react-native' ; class FCMService { register = ( onRegister , onNotification , onOpenNotification ) => { this . checkPermission ( onRegister ) this . createNotificationListeners ( onRegister , onNotification , onOpenNotification ) } registerAppWithFCM = async () => { if ( Platform . OS === 'ios' ){ await messaging (). registerDeviceForRemoteMessages (); await messaging . setAutoInitEnabled ( true ) } } checkPermission = ( onRegister ) => {