React于React native的渲染机制
Posted feng9exe
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了React于React native的渲染机制相关的知识,希望对你有一定的参考价值。
面向virtual DOM编程 vs 面向native componet编程;
状态编程引起的UI变化会全部提交到native compnent然后走平台原来的渲染流程。
The DOM is just one of the rendering environments React can render to,
the other major targets being native ios and android views via React Native. (This is why "virtual DOM" is a bit of a misnomer.)
ReactJS outputs the DOM that can be rendered the browsers. As you already know, the virtual DOM helps ReactJS efficiently keeps track of the delta of what has changed. For React Native for iOS, ultimately it outputs UIKit code. Same thing with React Native for Android, but instead of outputting DOM or UI Kit, the output is created using Android SDKs. So virtual DOM is just an intermediate step.
https://stackoverflow.com/questions/41804855/does-react-native-have-a-virtual-dom
以上是关于React于React native的渲染机制的主要内容,如果未能解决你的问题,请参考以下文章
React Native - PanResponder - 捕获冒泡机制详解
react-native-splash-screen集成实践(ios & android)