ReactNative usage reason, reactnative use
Background: As the company's project has not been started, one day I received a task to lead the team to find a cross-platform development language and support the hot update feature, because I have heard of ReactNative, so I took a serious look at the comments and documents on this framework. It happens that this framework has a corresponding Chinese document, and this framework is very popular, the number of stars on github is also growing. I used Framework7 to develop a small project, which also belongs to the same type of framework as ReactNative. However, Framework7 does not have a wide range of documents and lacks Chinese documents, so I decided to abandon it.
Why is ReactNative used? Let me translate some official comments to illustrate it.
1.With React Native, you don't build a "mobile web app", an "HTML5 app", or a "hybrid app ". you build a real mobile app that's indistinguishable from an app built using Objective-C or Java. react Native uses the same fundamental UI building blocks as regular iOS and Android apps. you just put those building blocks together using JavaScript and React.
With ReactNative, you do not need to build webapp, html5 app, or hybrid development app to build an App that can experience the same experience as Objective-C or Java language development. React Native uses the regular IOS and Android UI build blocks. You only need to put the build blocks together with JavaScript and React. (In fact, this sentence is not true. In fact, it is difficult to use React Native to implement some complex controls ).
2. Use native code when you need.
You can use native code to implement hybrid development when you need it.
3. Don't waste time recompiling.
You don't have to waste a lot of time re-Compiling. If you modify the JavaScript code, you just need to re-load your app.
4. There is also an important capability to support hot updates, and the Apple App Store allows ReactNative updates, which can reduce the time for Apple apps to go online.
In conclusion, the technology was used in a rush because of the limitations of its own vision and the lack of adequate technical selection. I have encountered many difficulties in learning and using this framework. I am not sure whether this framework is a wise choice until now, because there are other alternatives, such as html5, but due to time constraints, there may be no more in-depth comparison.