
React Native is an open-source mobile application framework, created by Facebook & written in JavaScript. You can build native mobile apps using React Native, which is supportable for both Android, iOS, Web and UWP.
You may also like - React.js Interview Questions
There are two main threads namely JavaScript thread and main UI thread.
- JavaScript thread.
- Main UI thread.
JavaScript code is run on its own thread, separate from the main UI thread. So even when your app is running complex logic, your UI can still be smoothly animating or scrolling at 60fps(frame per seconds), so as long as the UI isn’t blocked by the JS thread.
Hybrid applications are the web applications developed using
- HTML
- CSS
- JavaScript
web standards and wrapped in a native container using a mobile WebView object.
Native app is an app for a specific mobile device that is developed using
- Java/Kotlin for Android
- C/Swift for iOS
You may also like - Node.js Interview Questions
Before creating your first react native project, install node js which automatically install NPM(Node Package Manager)
-
//First, create native app command npm install -g create-react-native-app
-
//Now, Create your first ReactNative App create-react-native-app myFirstProject
-
//Now, go to the project directory cd myFirstProject
-
//Now, run the following command npm start
Both, React and React Native uses
- React Lifecycle Methods
- Recat State and Props
- Recat Components
- Redux Library
- Learn Once write Everywhere
- Cross-platform Development
- Faster Development
- Large Community
- Live and Hot Reloading
- Easy to use
- Provids Native Look and Feel
- View
- Text
- Image
- ScrollView
- TextInput
- ListView
Find some more components - Github