import { BlurView } from "expo-blur"; import React from "react"; import { Image, Platform, Pressable, Text, View } from "react-native"; import { SheetManager } from "react-native-actions-sheet"; import { background, icons } from "../../assets"; import Page from "../../layouts/Page"; import { useUser } from "../../providers/UserDataProvider"; import { gutters, Palette, Style } from "../../styles"; import { FONT_FAMILY } from "../../styles/Fonts"; import { size } from "../../styles/Style"; import { navigate } from "../../navigation/NavigationService"; import { Routes } from "../../navigation"; const AllMyPlaylist = () => { const { userPlaylists = [] } = useUser(); return ( ( SheetManager.show("Playlist", { payload: { startAtCreate: true } }) } > )} contentContainerStyle={{ paddingBottom: gutters * 2, }} > {(Array.isArray(userPlaylists) ? userPlaylists : []).map((item) => ( navigate(Routes.PlaylistDetails, { playlistId: item?.id }) } > {item?.name || "Sans nom"} ))} ); }; export default AllMyPlaylist;