Skip to content

Instantly share code, notes, and snippets.

@jnsdls
Created September 13, 2016 08:40
Show Gist options
  • Save jnsdls/30219a108e6d282220bbab18d104aabe to your computer and use it in GitHub Desktop.
Save jnsdls/30219a108e6d282220bbab18d104aabe to your computer and use it in GitHub Desktop.
takePhoto() {
this.addFlash(); // let's add a small flash effect
this.props.takePhoto(); // call the <App /> and tell it to take the picture
}
addFlash(){
// boilerplate to add a flash-effect
setTimeout(() => {
this.removeFlash(flash)
}, 300)
}
removeFlash(flash){
// boilerplate to remove the DOM we added to create the flas-effect
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment