Skip to content

Instantly share code, notes, and snippets.

@Gguigre
Created January 16, 2019 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gguigre/4d14ec35e42f69b1bf7b1af26919de83 to your computer and use it in GitHub Desktop.
Save Gguigre/4d14ec35e42f69b1bf7b1af26919de83 to your computer and use it in GitHub Desktop.
Complete TransitionView component
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