Job Interview Questions for react native

MUHAMMAD SHAMRAIZ
2 min readApr 5, 2021

1-What is react native?

React Native is a mobile app development platform that allows you to create android and ios apps only using Java script. React Native uses the same fundamental UI building blocks as regular iOS and Android apps so applications created using React Native are indistinguishable from an app built using Objective-C or Java.

2-Who uses react native?

Thousands of apps are created using React Native. Here is the list of some popular companies who are using React Native.

  • Facebook
  • Facebook Ads Manager
  • Instagram
  • F8
  • Airbnb
  • Skype
  • Tesla

3-List some components of react native?

Text, Image, View, TextInput, ListView are some core components of React Native.

4-What is flex box in react native?

Flexbox in React Native works in the same way as it does in CSS on the web, with a few exceptions. It is used to provide a consistent layout on different screen sizes.

5-What is flatlist in react native?

FlatList in React Native is a component that displays the content in similarly structured data as a scrollable list. It is used for large lists of data where the number of list items changes over time.

6-What are props and state in react native?

In a React native, different props of various component instances will issue the value of the props to render the views. The other meaning of the props is properties. A parent component passes a prop to the child component. The values defined in the props are utilized by the child components. It becomes very easy to program a reusable code by the implementation of the props.

To handle any data that is changeable, a component named state is used. A state is aspects of the React Native that may change or differ in a component. Each component contains different state values. Based on these values of the state, the UI is also changed.

7-What does style sheet do in react native?

StyleSheet.create method ensures that values are immutable and opaque, they are also only created once.

8-List steps to create a react native app?

Run the following command to Create and start a React Native App.

  • Step 1: npm install -g create-react-native-app // Installs create native app
  • Step 2: create-react-native-app AwesomeProject // Create a project named AwesomeProject
  • Step 3: cd AwesomeProject
  • Step 4: npm start

9-Why XHR command is used in RN?

XHR Module is used for implementation of XMLHttpRequest to post data on the server.

10-What kind of apps we can create in react native?

With react native we can create following types of app:

  • Working prototypes Apps
  • Apps with streamlined UI
  • Cross-platform apps
  • An app without the use of native APIs

--

--