Skip to content

Instantly share code, notes, and snippets.

@zsajjad
Created March 19, 2019 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zsajjad/afbfcede72147049f31e6cfcadbf9336 to your computer and use it in GitHub Desktop.
Save zsajjad/afbfcede72147049f31e6cfcadbf9336 to your computer and use it in GitHub Desktop.
poppyField.style({
imagePath: 'https://farm9.staticflickr.com/8295/8007075227_dc958c1fe6_z_d.jpg',
}).then((resp) => {
this.setState((state) => ({
styledImagePath: state.styledImagePath.concat([resp.imagePath]),
}));
}).catch((err) => {
console.log(err);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment