React-Native environment setup and basic introduction

React-Native environment setup and basic introduction

Environment Preparation

1. Environment Construction
React Native Chinese website

2. Development tools Front-end development software: Visual Studio Code

Mobile development software: Xcode, Android Studio

3. Knowledge Reserve

NodeJS React Es6, Es7

React Native Introduction

insert image description here

Introduction to React Naitve: A framework for developing Android and iOS apps launched by Facebook at the React.js Conf2015 conference. The main programming language is JavaScript. Its appearance and use not only have Native user experience, but also retain the development efficiency of React .

Before the emergence of React Native, we usually choose one of these three mobile technologies (Native App, HTML5, Hybrid) for development.

  • Native App : Developing native apps naturally has the best performance and powerful functions. However, the development and maintenance of multi-platform versions requires a lot of manpower and resources (the iterative review of the iOS version takes time).
  • HTML5 : Although it has the advantages of the Web, namely flexible layout capabilities, agile iteration potential without releases, and excellent cross-platform features. It has made great progress in some display apps with strong layout and weak interaction, such as news and information. However, due to the performance limitations of WebView on mobile devices, it has always been difficult to achieve success.
  • Hybrid App : JS+Native mainly calls each other, realizing the "one-time development, multiple execution" mechanism from the development level, making it truly suitable for cross-platform development. Hybrid App combines the advantages of Native App's good user experience with the low-cost advantage of Web App's cross-platform development using HTML5. However, this method has many problems: it cannot access offline data, cannot access devices, and cannot be updated remotely.
  • React Native : The underlying engine is JavaScript Core, but it calls native components instead of HTML5 components. This allows the runtime to achieve a performance experience comparable to that of the Navive App. At the same time, because the JavaScript code can be managed using the powerful backend Web method, it can achieve both efficient development and rapid deployment and hot fixes.

React Native Pros and Cons:

advantage

  1. Cross-platform development: With React Native, we can use the same core business logic code to create native applications that run on the Web, Android, and iOS.
  2. Hot update, App can be quickly iterated: real-time hot deployment;
  3. Learn once, write everywhere: React Native does not require a single native code to support multiple platforms, so it is not write once, run anywhere;

shortcoming

  1. React Native only supports iOS7 and above on iOS, and only supports Android4.1 and above on Android;
  2. The development cost is high, it is not friendly to novices, and it is not debugging friendly;
  3. Some complex interfaces and operations cannot be implemented by RN (you can consider native + React Native hybrid development);
  4. The version updates quickly, it is recommended to develop a fixed version

React Native vs Flutter vs Weex

insert image description here

This is the end of this article about React-Native environment setup and basic introduction. For more relevant React-Native environment setup content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • VSCode builds React Native environment
  • Use Win10+Android+Yoshi Android emulator to build ReactNative development environment
  • React Native steps to build a development environment
  • React Native environment setup tutorial
  • React Native builds iOS development environment
  • Detailed explanation of how to use jest to test react native components in your project
  • Some experience in building the React Native project framework

<<:  MySQL operations: JSON data type operations

>>:  VMware Tools installation and configuration tutorial for Ubuntu

Recommend

Mysql query the most recent record of the sql statement (optimization)

The worst option is to sort the results by time a...

Win10 + Ubuntu20.04 LTS dual system boot interface beautification

Effect display The built-in boot interface is too...

Implementation of multi-port mapping of nginx reverse proxy

Code Explanation 1.1 http:www.baidu.test.com defa...

MySQL transaction control flow and ACID characteristics

Table of contents 1. ACID Characteristics Transac...

Beginners learn some HTML tags (3)

Related articles: Beginners learn some HTML tags ...

Docker data volume common operation code examples

If the developer uses Dockerfile to build the ima...

Vue codemirror realizes the effect of online code compiler

Preface If we want to achieve the effect of onlin...

Key knowledge summary of Vue development guide

Table of contents Overview 0. JavaScript and Web ...

Solution to MySQL master-slave delay problem

Today we will look at why master-slave delay occu...

HTML cellpadding and cellspacing attributes explained in pictures

Cell -- the content of the table Cell margin (tabl...

Tutorial on installing AutoFs mount service under Linux

Whether it is Samba service or NFS service, the m...

Vue implements internationalization of web page language switching

1. Basic steps 1: Install yarn add vue-i18n Creat...

An in-depth introduction to React refs

1. What is Refs is called Resilient File System (...

Summary of learning Docker commands in one article

Table of contents Introduction Mirror repository ...

Detailed explanation of how to quickly build a blog website using Docker

Table of contents 1. Preparation 2. Deployment Pr...