My Blog

My WordPress Blog

My Blog

My WordPress Blog

React Native Interview Question

What is the purpose of code splitting, and how do you achieve it in React Native? 

Code splitting improves performance by loading only the necessary code for the current screen. It can be achieved using:  Code splitting helps optimize load times and enhances the app’s performance by avoiding unnecessary code loading. 

How do you create a basic button in React Native?

React native provides Button component which displays platform specific button. Following example shows how we create a platform-specific default button in React native. Platform-specific button means that the look and feel on a button will depend on whether the application is running on IOS or Android. Button component exposes two main props: title and onPress. […]

How do you create basic text input to React Native?

TextInput is provided by React native framework to implement simple text input control. Text input is one of the very basic controls of UI. Whether it is auto-complete, form, text input is a must used control in UI of application. TextInput component accepts placeholder value as props. When a user starts changing the text then […]

Give a quick overview of the life cycle of a React component?

Below image summarise the lifecycle methods exposed by react component and the order in which lifecycle methods are being called by React. React 16 was a major release for ReactJS. With this version react has marked some of the lifecycle methods like componentWillRecieveProps, ComponentWillUpdate as deprecated. In a later release of React, the framework will […]

What are the ways to write react components?

here are two ways of writing a react component Example of functional component Example of class-based component cases are known as a presentational or dumb component. The functional component gets information via props from its parent component and renders the information. You can see that the functional component accepts props as an argument. ES6 arrow […]

Scroll to top