Home  >  Article  >  Web Front-end  >  what is react native

what is react native

青灯夜游
青灯夜游Original
2019-05-07 10:31:0517864browse

React Native (RN) is a cross-platform mobile application development framework open sourced by Facebook in April 2015. It is a derivative of Facebook's earlier open source JS framework React on the native mobile application platform. It currently supports the two major platforms of iOS and Android.

what is react native

React Native uses Javascript language, JSX similar to HTML, and CSS to develop mobile applications, so technicians familiar with web front-end development need only minimal learning. Enter the world of mobile app development.

React Native enables you to write native mobile applications using only JavaScript. It is consistent with React in terms of design principles and uses a declarative component mechanism to build a rich and colorful user interface.

The principle of React Native is: Use React to abstract the native UI components of the operating system in JavaScript and replace DOM elements for rendering, such as replacing

with , to replaces etc.

Advantages and Disadvantages of React Native

Advantages:

1) React Native can convert mark elements into real native UI elements, using Existing methods of rendering views on any platform

2), React Native works separately from the main UI thread, so applications can maintain maximum performance without sacrificing functionality

3 ), React Native creates applications that allow developers to create and build cross-platform applications that are fully native to the client because it uses JavaScript components built on top of iOS or Android components. Cross-platform application development time is saved, and application maintenance is cheaper

4). In terms of component development, Native mobile applications use a lot of code and classes to render in the UI, but React Native only uses Name the component and declare its properties and it will be rendered in the UI. Both platforms save time in mobile app development.

Disadvantages:

1) Compared with other Android and iOS programming languages, React Native is not yet mature. It is still in the improvement stage, which may have a negative impact on the application, especially since the developers have to make a lot of changes and upgrade regularly every time a new update is released. Applications also encountered many problems during the upgrade process.

2), In addition to just writing code, developers sometimes need to write additional native code for components that are not compatible with React Native. Sometimes, compared to native components, React Native components become Worse

3), it lacks security and robustness, React Native is a JavaScript library and open source framework, it has major security issues

4), React Native before initial rendering It takes a lot of time to initialize the run because the JavaScript thread takes time to initialize

The above is the detailed content of what is react native. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn