$ npm install driver-universal
Driver for Universal App.
Support both DOM(Web) and Weex, with normalized 750rpx support of screen width.
$ npm install --save driver-universal
import { createElement, render } from 'rax';
import View from 'rax-view';
import Image from 'rax-image';
import DriverUniversal from 'driver-universal';
function Example() {
return (
<View>
<Image width="560" height="560" src="https://img.alicdn.com/tps/TB1z.55OFXXXXcLXXXXXXXXXXXX-560-560.jpg" />
</View>
);
}
render(<Example />, null, {
driver: DriverUniversal
});
© 2010 - cnpmjs.org x YWFE | Home | YWFE