//@ts-nocheck import React, { PureComponent } from 'react'; import { Animated, Easing } from 'react-native'; import { px2dp } from '../../utils'; interface Props { height?: number; width?: number; size?: number; tintColor?: string; } export default class LoadingImageKit extends PureComponent { static defaultProps = { height: 20, width: 20, tintColor: "#fff" } constructor(props) { super(props); this.fadeAnim = new Animated.Value(0); } componentDidMount () { Animated.loop(Animated.timing( this.fadeAnim, { duration: 2800, toValue: 1, easing: Easing.linear, useNativeDriver: true } )).start() } render () { const { width, height, tintColor = '#fff', size = px2dp(20) } = this.props; return ( ); } }