Instantly share code, notes, and snippets.

Embed
What would you like to do?
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