Skip to content

Instantly share code, notes, and snippets.

@stephencookdev
Created July 16, 2018 15:12
Show Gist options
  • Save stephencookdev/9e0af114386f730a4ea365d0394dd41a to your computer and use it in GitHub Desktop.
Save stephencookdev/9e0af114386f730a4ea365d0394dd41a to your computer and use it in GitHub Desktop.
`SwitchWithSlide` example - render
render() {
const {
prevChild,
curChild,
childPosition,
animationCallback,
} = this.state;
return (
<Slider
position={childPosition}
animationCallback={animationCallback}
>
{prevChild || curChild}
</Slider>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment