import * as React from 'react'; import { Animated } from 'react-native'; import { IconButton } from 'react-native-paper'; import { Flex, ActivityIndicator } from '@ant-design/react-native'; import { useAnimation } from 'react-native-animation-hooks'; import Text from './Text'; export default function PlusCom(props) { const { num, minus, plusEvent, loading } = props; const minusOpacity = useAnimation({ type: 'timing', initialValue: 0, duration: 100, toValue: num ? 1 : 0, }); return ( <> {loading ? ( ) : ( {num || 0} )} ); }