<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Weex | Dezhi Yu</title><link>https://halfrost.me/categories/weex/</link><atom:link href="https://halfrost.me/categories/weex/index.xml" rel="self" type="application/rss+xml"/><description>Weex</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Fri, 31 Mar 2017 10:05:36 +0000</lastBuildDate><image><url>https://halfrost.me/media/favicon_hu_4db6119fa52e8e17.png</url><title>Weex</title><link>https://halfrost.me/categories/weex/</link></image><item><title>Weex layout engine powered by FlexBox algorithm</title><link>https://halfrost.me/post/weex-layout-engine-powered-by-flexbox-algorithm/</link><pubDate>Fri, 31 Mar 2017 10:05:36 +0000</pubDate><guid>https://halfrost.me/post/weex-layout-engine-powered-by-flexbox-algorithm/</guid><description>&lt;p&gt;在上篇文章里面谈了Weex在iOS客户端工作的基本流程。这篇文章将会详细的分析Weex是如何高性能的布局原生界面的，之后还会与现有的布局方法进行对比，看看Weex的布局性能究竟如何。&lt;/p&gt;
&lt;p&gt;打开Weex的源码的Layout文件夹，就会看到两个c的文件，这两个文件就是今天要谈的Weex的布局引擎。&lt;/p&gt;
&lt;p&gt;Layout.h和Layout.c最开始是来自于React-Native里面的代码。也就是说Weex和React-Native的布局引擎都是同一套代码。&lt;/p&gt;
&lt;p&gt;当前React-Native的代码里面已经没有这两个文件了，而是换成了Yoga。&lt;/p&gt;
&lt;p&gt;点击
看全文。&lt;/p&gt;</description></item></channel></rss>