Home > Web Front-end > Front-end Q&A > Is react native open source?

Is react native open source?

WBOY
Release: 2022-06-27 16:21:20
Original
1571 people have browsed it

"react native" is open source; "react native" is Facebook's cross-platform mobile application development framework, which was open source in April 2015; "react native" is Facebook's earlier open source JS framework React A derivative of the native mobile application platform, it supports the two major platforms of iOS and Android.

Is react native open source?

The operating environment of this tutorial: Windows 10 system, react17.0.1 version, Dell G3 computer.

react native

React Native (RN) is a cross-platform mobile application development framework open sourced by Facebook in April 2015.

is Facebook’s earlier The open source JS framework React is a derivative of the native mobile application platform and supports both iOS and Android platforms. RN uses Javascript language, JSX similar to HTML, and CSS to develop mobile applications, so technicians who are familiar with Web front-end development can enter the field of mobile application development with very little learning.

The main features of React Native are as follows:

Native iOS components

React Native advocates "Learn once, write everywhere" rather than other cross-platform tools We have always preached "Write once, run everywhere". Through React Native, developers can use standard iOS platform components such as UITabBar and UINavigationController, so that the application interface can maintain a consistent appearance and style on other platforms.

Asynchronous execution

All operations between JavaScript application code and the native platform adopt asynchronous execution mode. The native module uses additional threads. Developers can decode main thread images, save to disk in the background, There is no need to worry about UI and many other factors to directly measure the text design layout.

Touch processing

React Native introduces a response system similar to the Responder Chain response chain event processing mechanism on iOS, and based on this, it provides developers with more advanced components such as TouchableHighlight.

Extensions:

Advantages and disadvantages of React Native

Advantages:

1) , React Native can convert markup elements into real native UI elements, leveraging existing methods of rendering views on any platform

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

3) Applications created with React Native allow developers to create and build cross-platform applications that are fully native applications on the client side because it Use 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 and run, because the JavaScript thread takes time to initialize

[Related recommendations: javascript video tutorial, web front-end]

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template