Socket
Socket
Sign inDemoInstall

driver-weex

Package Overview
Dependencies
1
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

driver-weex


Version published
Maintainers
4
Created

Readme

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

Last updated on 23 Aug 2018

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc