Skip to content

Instantly share code, notes, and snippets.

@nitin42
Created September 3, 2017 12:23
Show Gist options
  • Save nitin42/7766ddc4869598457c4151bf101874cd to your computer and use it in GitHub Desktop.
Save nitin42/7766ddc4869598457c4151bf101874cd to your computer and use it in GitHub Desktop.
class App extends React.Component {
state = { src: '', err: null }
render() {
return (
<ProcessImage
image='http://365.unsplash.com/assets/paul-jarvis-9530891001e7f4ccfcef9f3d7a2afecd.jpg'
colors={{
mix: {
color: 'mistyrose',
amount: 10
}
}}
resize={{ width: 500, height: 500, mode: 'bilinear' }}
processedImage={(src, err) => this.setState({ src, err, })}
/>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment