19 Weex Rendering Bugs That Will Haunt Your Cross-Platform Build
Weex promises write-once-run-anywhere, but this list shows that promise has cracks: teams must build and test platform-specific workarounds for each feature, which multiplies maintenance cost and can slip into production as flickering UI, broken navigation, or invisible ellipsis marks.
Weex development runs into a wall of platform-specific rendering idiosyncrasies. The list covers CSS shorthand failures, layout bugs, timer quirks, and refresh component issues. Android forces explicit width/height on every div; iOS breaks overflow with box-shadow; HarmonyOS ignores ellipsis with nowrap. Workarounds range from wrapping elements in extra divs to slicing images for arrows.
The patterns are concrete: background shorthand is unusable, `border-radius` with four different values fails on iOS, and the `refresh` component cannot be dynamically shown or hidden. Several issues stem from how Weex maps CSS to native rendering on each platform, leaving developers to guess which properties behave where. The list also includes platform-specific traps like the Baidu app session reset and HarmonyOS image loading stalling after a translate plus transition-delay.
All 19 items are practical field notes, not theoretical warnings. Each one names a symptom and a fix, giving teams a checklist to consult before shipping Weex features. The recurring theme is that "write once, run anywhere" breaks down in the details — the only reliable path is to test every style and component on every target platform.
The list is a direct symptom of Weex's rendering engine diverging from standard CSS across platforms, forcing developers to maintain a platform-aware mental model instead of a single component API.
Most items are silent at compile time and only appear at runtime, so without a shared pitfall register every new team member re-discovers the same bugs.
The article's claims get pushed back with precise Weex knowledge: font-weight applies only to text components and Android force-maps all weights to 400 or 700, so design's 500 Medium will always render thin. box-shadow is iOS-only by official docs, so it can't break overflow on Android, and white-space isn't a supported style at all—single-line ellipsis needs lines:1 plus parent-given width. Elsewhere the thread dismisses Weex as a decade-old stack, with one developer counting two years wasted on it.
The first item isn't 'may not work' — it definitely won't: font-weight in Weex belongs to text styles and only applies to text/input/richtext; div has no font concept. Also the docs say iOS supports all 9 weights from 100–900, while Android only recognizes 400 and 700, and any other number gets forced down to 400 or 700 — so the 500 Medium from design will always render too thin on Android; adjusting the number won't fix it, the only way is to load the Medium weight via font-family. Related counterexample: #12's box-shadow is an iOS-only property; the docs literally say 'currently only iOS is supported, Android is not supported yet', so the 'overflows invalidated' symptom simply won't appear on Android. It isn't an iOS bug, it's a difference in platform implementation; on the Android side the only way to get a shadow is to cut an image. #19 can also be rewritten: white-space isn't in Weex's supported style list (it never appears on the general styles page), so writing it is a no-op. Single-line ellipsis is lines:1 paired with text-overflow:ellipsis, and the width can only come from the parent container — which is actually the same root cause as #3's 'must have explicit width and height'.
Wow, there are still pros—your company is still using this?