Skip to content

Instantly share code, notes, and snippets.

@jnsdls
Last active September 13, 2016 08:32
Show Gist options
  • Save jnsdls/146403e45819f6d13560f4d5bf3f008b to your computer and use it in GitHub Desktop.
Save jnsdls/146403e45819f6d13560f4d5bf3f008b to your computer and use it in GitHub Desktop.
render() {
// destructuring state that will get passed to <Camera /> and <Library />
// both <Camera /> and <Library /> receive props here
// we use ReactSwipe to handle the swipeable panels, it works great out of the box
const { saving, canLoadMore, currentAt } = this.state;
return (<ReactSwipe
className='app-layer'
ref="reactSwipe"
swipeOptions={{continuous: false, startSlide: 0}}>
<Camera />
<Library />
</ReactSwipe>);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment