[android][ios][core] Whole platform support rtl direction by CSS "direction:rtl"
[core] Update the new layout engine to support inheritable CSS "direction:rtl".
[ios][android] Update component layer, to support list, slide, scroller RTL direction. Update WXEnvironment, now we can get system layout direction by WXEnvironment.layoutDirection. Update WXDomModule, now we can get element layout direction by getLayoutDirection(ref,callback)
Few languages such as Arabic, Hebrew, or Persian are written from Right to Left, but weex not support RTL layouts. To handle them. Since this PR merged, we can use weex for RTL languages in both android and ios. And Scroller performance like native, layout and scroll direction will be reverse.
There are some test Demos:
Horizontal Scroller http://dotwe.org/vue/0dd282e3183c2384ec38a465c915ce41
Scroller (ScrollToElement) http://dotwe.org/vue/a24001978199df6e981673e9460598c8
envDirection + getLayoutDirection http://dotwe.org/vue/d6c5cf7a2a907c33cf4ba25fea6e6ef4