Created
September 3, 2017 12:23
-
-
Save nitin42/7766ddc4869598457c4151bf101874cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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