Socket
Socket
Sign inDemoInstall

driver-weex

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

driver-weex

Weex driver for Rax


Version published
Weekly downloads
679
decreased by-13.83%
Maintainers
1
Weekly downloads
 
Created
Source

driver-weex

Weex driver for Rax.

Install

$ npm install --save driver-weex

Use

import {createElement, Component, render} from 'rax';
import WeexDriver from 'driver-weex';
import {isWeex} from 'universal-env';

class Example extends Component {
  render() {
    return (
      <div>
        <img width="560" height="560" src="https://img.alicdn.com/tps/TB1z.55OFXXXXcLXXXXXXXXXXXX-560-560.jpg" />
      </div>
    );
  }
}

render(<Example />, null, {
  driver: isWeex ? WeexDriver : null
});

Support elements

img

  • src
  • width: recommend use style.width
  • height: recommend use style.height
  • placeholder: weex only
  • resize: weex only

a

  • href

video

  • src
  • controls
  • autoplay: not sure
  • play-status: weex only

textarea

  • placeholder
  • disabled
  • autofocus
  • rows
  • children: as value

FAQs

Package last updated on 21 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc