Created
January 16, 2019 21:03
-
-
Save Gguigre/4d14ec35e42f69b1bf7b1af26919de83 to your computer and use it in GitHub Desktop.
Complete TransitionView component
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
type PropsType = { index?: number }; | |
export class TransitionView extends PureComponent<PropsType> { | |
render() { | |
const { index, ...rest } = this.props; | |
return ( | |
<Animatable.View | |
animation="fadeIn" | |
duration={theme.transitionDuration} | |
delay={index ? (index * theme.transitionDuration) / 5 : 0} | |
useNativeDriver | |
{...rest} | |
/> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment