1.0.0 • Published 8 years ago

react-croppie v1.0.0

Weekly downloads
77
License
ISC
Repository
-
Last release
8 years ago

react-coppie

an image cropping plugin based on Croppie keep in mind this is a work in progress and not all the features of croppie are yet available ##install

Npm:npm install react-croppie

##using react-croppie

###in your react component:

  var Croppie = require("react-croppie");
  ...
  render(){
    return <Croppie url="path/to/image"/>
  }

###in your html file :

<link rel="stylesheet" href="node_modules/react-croppie/cropper.css">

##documentation

you can pass props to react-croppie component based on croppie docs

###the result currently we only support canvas type from croppie docs

var Croppie = require("react-croppie");
...
render(){
 return <Croppie url="path/to/image" ref="reactCroppie"/>
},
...
getResult(options){
  this.refs.reactCroppie.result(options).then( res =>{
    //do whatever you like with the result
  });
}
1.0.0

8 years ago

1.0.0-0

8 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago