Mobile App Using React Native- Android

Mobile App Using React Native- Android


🌐 What is React?

One of the key features of React is its virtual DOM (Document Object Model). The virtual DOM is a lightweight in-memory representation of the actual DOM, and it allows React to perform fast updates by minimizing the number of DOM operations required. When a component’s state changes, React uses the virtual DOM to determine the minimum number of DOM mutations needed to update the actual DOM.

React is a JavaScript library for building user interfaces. It was developed by Facebook and is often used for building single-page applications and mobile applications.

React is also known for its reusable components, which allow developers to build reusable blocks of UI that can be easily shared and composed to create complex user interfaces.

Overall, React is a popular and powerful tool for building dynamic and interactive user interfaces, and it is widely used by developers in a variety of applications.



AngularReact Vue
# Watchers3.1k6.7k6.3k
# Stars78.4k180k218k
# Forks20.6k36.5k35.7k
# Contributors1,500+1,500+400+

What is React-Native?

React Native is a framework for building native mobile applications using JavaScript and the React framework. It allows developers to build apps that are indistinguishable from apps built using traditional Android or iOS development tools.

React Native uses the same design principles as React, so you can use the same declarative components to build your user interface. However, instead of rendering to the web, React Native components are translated into native platform-specific components that are rendered to the screen. This allows you to build native mobile apps using the same principles and techniques as you would use to build a web app, while still taking advantage of the native platform’s capabilities.

React Native is a popular choice for building mobile apps because it allows developers to use familiar tools and technologies, and it enables them to build apps that can run on multiple platforms with a single codebase. It is also known for its hot reloading feature, which allows developers to make changes to their app and see the results in real time


What is Expo Native?

React is a JavaScript library for building user interfaces. It was developed by Facebook, and is often used for building single-page applications and mobile applications.

One of the key features of React is its virtual DOM (Document Object Model). The virtual DOM is a lightweight in-memory representation of the actual DOM, and it allows React to perform fast updates by minimizing the number of DOM operations required. When a component’s state changes, React uses the virtual DOM to determine the minimum number of DOM mutations needed to update the actual DOM.

React is also known for its reusable components, which allow developers to build reusable blocks of UI that can be easily shared and composed to create complex user interfaces.

Overall, React is a popular and powerful tool for building dynamic and interactive user interfaces, and it is widely used by developers in a variety of applications.


What is React Navigation Patterns?

React Navigation is a popular library for building navigation systems in React Native applications. It provides a set of navigation components and APIs that allow developers to build complex navigation patterns and transitions between screens in their apps.

There are several different navigation patterns that are commonly used with React Navigation. Some of these patterns include:

  • Stack navigation: This is the most common type of navigation pattern in mobile apps, and it allows developers to build a stack of screens where each new screen is added to the top of the stack. This pattern is often used for apps with a linear workflow, where users need to complete one task before moving on to the next.
  • Tab navigation: This pattern allows developers to build apps with multiple screens that are accessible via a tab bar at the bottom of the screen. This is a common pattern for apps with multiple distinct sections or modes, such as social media apps or productivity apps.
  • Drawer navigation: This pattern allows developers to build apps with a side drawer that can be accessed from the main screen. The drawer can contain a variety of navigation options, such as links to different sections of the app or settings.
  • Modal navigation: This pattern allows developers to display a new screen as a modal overlay on top of the current screen. Modal screens are often used for tasks that are focused and temporary, such as creating a new item or setting a timer.

React Navigation provides a set of components and APIs that allow developers to build these and other navigation patterns in their React Native apps.


Required CMD

  • •npm install –global expo-cli
  • •expo init reactnative-demo
  • •npx expo install react-native-web@~0.18.9 react-dom@18.1.0 @expo/webpack-config@^0.17.2(if run thru browser)
  • •npm i @react-navigation/stack
  • •npm i @react-navigation/native
  • •npm start

Using REST API CALL (OMDB API)

const xhr = new XMLHttpRequest();
      xhr.open('GET', "http://www.omdbapi.com/?apikey=cc456efe&t=Star+Wars&y=1977");
      xhr.send();
      xhr.onload = () => {
        if (xhr.status == 200){
          let response = JSON.parse(xhr.response);
                  }else{
          console.log(`HTTP Request Failed ${xhr.status}`);
        }
      };

Demo:


adbanner