Home>Article>Web Front-end> Is react native open source?
"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.
The operating environment of this tutorial: Windows 10 system, react17.0.1 version, Dell G3 computer.
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!