gitwtfhub

wtf is weex-native-directive?

yyx990803/weex-native-directive — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2017-10-10

8JavaScriptAudience · developerComplexity · 5/5DormantSetup · hard

TL;DR

A design proposal for Weex that moves long list rendering to native iOS/Android code, reusing screen cells instead of building a virtual DOM node per item.

Mindmap

mindmap
  root((repo))
    What it does
      Native list rendering proposal
      Recycles list cells
      New template directives
    Tech Stack
      JavaScript
      Weex
      Vue
      Rax
    Use Cases
      Speed up long scrolling lists
      Reduce mobile memory usage
      Optimize data-driven lists
    Audience
      Weex framework developers
      Mobile app engineers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Render very long lists in a mobile app without creating a DOM node per item.

REASON 2

Recycle native list cells the way UITableView or RecyclerView do.

REASON 3

Adopt the recycle-list component and cell-slot templates in a Weex-based app.

REASON 4

Design a JS-to-native binding layer for high-performance list rendering.

What's in the stack?

JavaScriptWeexVueRax

How it stacks up

yyx990803/weex-native-directiveadguardteam/recoveryadm1nsys/safari-ai-extension
Stars888
LanguageJavaScriptJavaScriptJavaScript
Last pushed2017-10-102018-03-16
MaintenanceDormantDormant
Setup difficultyhardeasyhard
Complexity5/52/52/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · hard Time to first run · 1day+

This is a design proposal, not a working library, it requires framework-level changes to Vue, Rax, and the JS-native bridge.

Yoink these prompts

Prompt 1
Explain how the recycle-list and cell-slot components in this proposal reduce memory usage compared to a normal virtual DOM list.
Prompt 2
Walk me through the [[match]] and [[repeat]] directive syntax this proposal introduces.
Prompt 3
Help me understand what changes to Vue and Rax would be needed to implement this proposal.
Prompt 4
Summarize the restrictions this proposal places on expression syntax and why they exist.

Frequently asked questions

wtf is weex-native-directive?

A design proposal for Weex that moves long list rendering to native iOS/Android code, reusing screen cells instead of building a virtual DOM node per item.

What language is weex-native-directive written in?

Mainly JavaScript. The stack also includes JavaScript, Weex, Vue.

Is weex-native-directive actively maintained?

Dormant — no commits in 2+ years (last push 2017-10-10).

How hard is weex-native-directive to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is weex-native-directive for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.