working principle:Basically similar, js-native Bridge and front-end rendering framework, but the use of frame technology is not the same;
WeexAli's early development of a project through the JSON data description native rendering Weapp and vue.js this excellent front-end open source MVVM framework and deep integration; HTTPS://GITHUB.COM/WEEXTEAM/ARTICLE/ISSUES/32
React Native:http://www.jianshu.com/p/978c4bd3a759
|
Weex |
React Native: |
JS Engine |
V8 |
Jscore |
JS Development Framework |
Vue.js component, data binding Virtual DOM Template is normal HTML, data binding using mustache style, style directly using CSS |
React component, data binding Virtual DOM JSX template Learning to use a certain cost |
Layout |
Subset of Flexbox |
Subset of Flexbox |
Asynchronous |
Only support callback |
Provides support for the promise |
Debugging |
Debug JS code in Chrome, Support Preview page DOM node |
Debug JS code in Chrome |
Instant Preview |
There are hot reload features, you can change the code, side on the phone to see the effect |
There are hot reload features, you can change the code, side on the phone to see the effect |
Packaged |
The default JS bundle contains only business JS code, the volume is much smaller, the basic JS Library is included in the Weex SDK |
can only be reactnative Base JS Library and business JS together into a JS bundle, no sub-package features, need to make subcontracting packaging tools |
Cross-platform |
Weex can support Android IOS Web three platforms |
Support Android iOS two platform, need to expand to support web,windows and Node-webkit support is under development
|
In Summary:Due to the low Weex learning threshold, ease of use and performance considerations, we temporarily choose Weex as the blueprint for research and transformation of the front-end page, frame out time is very short, which may encounter various problems, we only have stones.
Weex Address:Http://alibaba.github.io/weex/index.html
App dynamic new technology framework Weex and react Native--Valen