mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
21 lines
593 B
TypeScript
21 lines
593 B
TypeScript
import { Image } from "expo-image";
|
|
import { View } from "react-native";
|
|
|
|
export const LargePoster: React.FC<{ url?: string | null }> = ({ url }) => {
|
|
if (!url)
|
|
return (
|
|
<View className='p-4 rounded-xl overflow-hidden '>
|
|
<View className='w-full aspect-video rounded-xl overflow-hidden border border-neutral-800'></View>
|
|
</View>
|
|
);
|
|
|
|
return (
|
|
<View className='p-4 rounded-xl overflow-hidden '>
|
|
<Image
|
|
source={{ uri: url }}
|
|
className='w-full aspect-video rounded-xl overflow-hidden border border-neutral-800'
|
|
/>
|
|
</View>
|
|
);
|
|
};
|