Home >> Interviews Q & A >> React Native Interview Questions

React Native Interview Questions

React Native Interview Questions: React Native helps you in building native mobile apps using JavaScript, which is supportable for both android and iOS.
Q: What is React Native?

React Native is a Javascript library developed by Facebook and Instagram. React Native helps you in building native mobile apps using JavaScript, which is supportable for both Android and iOS.

You may also like - React Js Interview Questions
Q: How many threads runs in React Native?

There are two main threads namely JavaScript thread and main UI thread.

  1. JavaScript thread.
  2. 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.

Q: What is the difference between React and React Native?
React Js:
ReactJs is a JavaScript Library used for developing apps in HTML5 using JavaScript as the developing language
React Native:
React Native is used to develop native mobile apps using JavaScript as the development language.
Q: What are some of the most common commands you hsould know when dbuilding a React Native Apps?
//To create a new application
react-native init myNewApplication

//Get the development server up and running
react-native start

//Build the application and load it up onto the device.
react-native run-ios 
react-native run-android

//Call npm install to download all the related packages.
npm install

//Show any running react-native development servers that are running
ps aux | grep react-native
You may also like - Node Js Interview Questions
Q: What are the steps to create first React Native Apps?

Before creating your first react native project, install node js which automatically install NPM(Node Package Manager)

  1. //First, create native app command
    npm install -g create-react-native-app 
    
  2. //Now, Create your first ReactNative App
    create-react-native-app myFirstProject 
    
  3. //Now, go to the project directory
    cd myFirstProject
    
  4. //Now, run the following command
    npm start
    
Full Stack Tutorials

Author | Blogger @FullStackTutorials | View all articles