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

Detailed tutorial on installing centos8 on VMware

CentOS official website address https://www.cento...

Docker advanced method of rapid expansion

1. Command method Run the nginx service in the cr...

Detailed tutorial on installing Docker on Windows

Since my local MySQL version is relatively low, I...

React+Koa example of implementing file upload

Table of contents background Server Dependencies ...

How to use CSS to pull down a small image to view a large image and information

Today I will talk about a CSS special effect of h...

vue front-end HbuliderEslint real-time verification automatic repair settings

Table of contents ESLint plugin installation in H...

Thoroughly understand JavaScript prototype and prototype chain

Table of contents Preface Laying the foundation p...

Learn the basics of nginx

Table of contents 1. What is nginx? 2. What can n...

VMware Workstation Pro installs Win10 pure version operating system

This article describes the steps to install the p...

A brief analysis of JS original value and reference value issues

Primitive values ​​-> primitive types Number S...

Tomcat's class loading mechanism process and source code analysis

Table of contents Preface 1. Tomcat class loader ...