diff --git a/assets/images/rotten-tomatoes.png b/assets/images/rotten-tomatoes.png new file mode 100644 index 00000000..341b62b0 Binary files /dev/null and b/assets/images/rotten-tomatoes.png differ diff --git a/components/Ratings.tsx b/components/Ratings.tsx new file mode 100644 index 00000000..f3d73168 --- /dev/null +++ b/components/Ratings.tsx @@ -0,0 +1,41 @@ +import { BaseItemDto } from "@jellyfin/sdk/lib/generated-client/models"; +import { View, ViewProps } from "react-native"; +import { Badge } from "./Badge"; +import { Ionicons } from "@expo/vector-icons"; +import { Image } from "expo-image"; + +interface Props extends ViewProps { + item: BaseItemDto; +} + +export const Ratings: React.FC = ({ item }) => { + return ( + + {item.OfficialRating && ( + + )} + {item.CommunityRating && ( + } + /> + )} + {item.CriticRating && ( + + } + /> + )} + + ); +};