import React, {useState} from 'react'; import {Image, ImageStyle, StyleSheet, TouchableOpacity} from 'react-native'; import {normalize} from '../../utils'; interface LikeButtonProps { onPress: () => void; style: ImageStyle; } const LikeButton: React.FC = ({onPress, style}) => { const [filled, setFilled] = useState(false); const uri = filled ? require('../../assets/images/heart-filled.png') : require('../../assets/images/heart-outlined.png'); return ( { setFilled(!filled); onPress(); }}> ); }; const styles = StyleSheet.create({ image: { width: normalize(18), height: normalize(15), }, }); export default LikeButton;