How to use driver-weex - 2 common examples

To help you get started, we’ve selected a few driver-weex examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alibaba / rax / packages / driver-universal / src / weex.js View on Github external
setStyle(node, style) {
      for (let prop in style) {
        // translate 'rpx' to px
        style[prop] = convertUnit(style[prop], prop);
      }
      DriverWeex.setStyle(node, style);
    }
  });
github alibaba / rax / packages / driver-universal / src / weex.js View on Github external
createElement(type, props = {}) {
      const style = {};
      const originStyle = props.style;
      if (originStyle) {
        for (let prop in originStyle) {
          style[prop] = convertUnit(originStyle[prop], prop);
        }
      }
      return DriverWeex.createElement(type, Object.assign({}, props, { style }));
    },
    setStyle(node, style) {

driver-weex

Weex driver for Rax

BSD-3-Clause
Latest version published 3 years ago

Package Health Score

57 / 100
Full package analysis

Popular driver-weex functions

Similar packages