import { Platform, View } from 'react-native'; import { IconButton } from 'native-base'; import { MaterialIcons } from '@expo/vector-icons'; type LikeButtonProps = { isLiked: boolean; onPress?: () => void; color?: string; }; export const LikeButton = ({ isLiked, color, onPress }: LikeButtonProps) => { if (Platform.OS === 'web') { // painful error of no onHover event control return ( ); } return ( ); };