summaryrefslogtreecommitdiffstats
path: root/components/PreviewCard.tsx
blob: 989ec34c9c22f3de4a42bb781125279c8edbcb1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const imageURL = 'https://image.tmdb.org/t/p/original';
import { ImageBackground, View } from "react-native";
const baseURL ='https://api.themoviedb.org/3/'
import tw from 'twrnc';

const PreviewCard = ({ movie }) => {
    return (
        <View style={tw``}>
            <View style={tw`shadow-black rounded`}>
                <ImageBackground
                    source={{uri: `https://image.tmdb.org/t/p/original${movie?.poster_path}`}}
                    resizeMode={'cover'}
                    style={tw`h-40 w-30 rounded-xl bg-white border border-white/30 overflow-hidden`}
                ></ImageBackground>
            </View>
        </View>
          )}
        

export default PreviewCard