Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
renderItem(item, index) {
const {animation, counter} = this.state;
let animationProps;
switch (animation) {
case animationType.FADE_IN:
animationProps = AnimatableManager.presets.fadeIn;
break;
case animationType.ENTRANCE:
animationProps = AnimatableManager.getEntranceByIndex(index);
break;
case animationType.ADDING:
animationProps = AnimatableManager.getSlideInSlideDown(index, {onAnimationEnd: this.onAnimationEnd}, counter);
break;
default:
break;
}
return (
Alert.alert(`pressed on contact #${index + 1}`)}
>
renderRow(row, id) {
const initials = AvatarHelper.getInitials(row.name);
const animationProps = AnimatableManager.getEntranceByIndex(id);
return (
Alert.alert(`pressed on contact #${id + 1}`)}
{...animationProps}
>
renderItem(item, index) {
const {animation, counter} = this.state;
let animationProps;
switch (animation) {
case animationType.FADE_IN:
animationProps = AnimatableManager.presets.fadeIn;
break;
case animationType.ENTRANCE:
animationProps = AnimatableManager.getEntranceByIndex(index);
break;
case animationType.ADDING:
animationProps = AnimatableManager.getZoomInSlideDown(index, {onAnimationEnd: this.onAnimationEnd}, counter);
break;
default:
break;
}
return (