mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* react-imgpro: initial definitions * react-imgpro: remove extra rules of tslint.json * react-imgpro: format
26 lines
731 B
TypeScript
26 lines
731 B
TypeScript
import * as React from 'react';
|
|
import ProcessImage from "react-imgpro";
|
|
|
|
class Test extends React.Component<any> {
|
|
render() {
|
|
return (
|
|
<ProcessImage
|
|
image="http://test-img.com"
|
|
contain={{
|
|
width: 500,
|
|
height: 200,
|
|
mode: "horizontal_right",
|
|
}}
|
|
customCdn="http://test.cdn"
|
|
storage={true}
|
|
scale={false}
|
|
onProcessFinish={() => console.log("onProcessFinish")}
|
|
>
|
|
<div className="one"/>
|
|
<div className="two"/>
|
|
<div className="three"/>
|
|
</ProcessImage>
|
|
);
|
|
}
|
|
}
|