How to use the driver-weex.setStyle function in driver-weex

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);
    }
  });

driver-weex

Weex driver for Rax

BSD-3-Clause
Latest version published 3 years ago

Package Health Score

60 / 100
Full package analysis

Popular driver-weex functions

Similar packages