Created
September 13, 2016 08:40
-
-
Save jnsdls/30219a108e6d282220bbab18d104aabe to your computer and use it in GitHub Desktop.
This file contains 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
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