import React from 'react'; import Card, { CardBorderRadius } from './Card'; import { VStack, Text, Image } from 'native-base'; import { useNavigation } from '../Navigation'; type SongCardProps = { cover: string; name: string; artistName: string; songId: number; }; const SongCard = (props: SongCardProps) => { const { cover, name, artistName, songId } = props; const navigation = useNavigation(); return ( navigation.navigate('Play', { songId })}> {[props.name, {name} {artistName} ); }; export default SongCard;