create from library
This commit is contained in:
@@ -37,6 +37,7 @@ const BackTracks = () => {
|
|||||||
liked: false,
|
liked: false,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
onPressPlus={() => navigate(Routes.WritingLyrics)}
|
||||||
>
|
>
|
||||||
<View>
|
<View>
|
||||||
{items.length > 0 && (
|
{items.length > 0 && (
|
||||||
|
|||||||
@@ -1,16 +1,22 @@
|
|||||||
import { View, Text, StyleSheet, Pressable } from "react-native";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
import { Image, Pressable, StyleSheet, Text, View } from "react-native";
|
||||||
|
import { icons } from "../../../assets";
|
||||||
import { Palette, Style } from "../../../styles";
|
import { Palette, Style } from "../../../styles";
|
||||||
import { FONT_FAMILY } from "../../../styles/Fonts";
|
import { FONT_FAMILY } from "../../../styles/Fonts";
|
||||||
|
const CardContainer = ({ children, label = "", onPress, onPressPlus }) => {
|
||||||
const CardContainer = ({ children, label = "", onPress }) => {
|
|
||||||
return (
|
return (
|
||||||
<View style={{ gap: 12 }}>
|
<View style={{ gap: 12 }}>
|
||||||
<View style={{ ...Style.containerSpaceBetween }}>
|
<View style={{ ...Style.containerSpaceBetween }}>
|
||||||
<Text style={styles.label}>{label}</Text>
|
<Text style={styles.label}>{label}</Text>
|
||||||
<Pressable onPress={onPress}>
|
|
||||||
<Text style={styles.seeAll}>Voir tout</Text>
|
<View style={{ flexDirection: "row", alignItems: "center", gap: 20 }}>
|
||||||
</Pressable>
|
<Pressable onPress={onPressPlus}>
|
||||||
|
<Image source={icons.add} style={{ width: 15, height: 15 }} />
|
||||||
|
</Pressable>
|
||||||
|
<Pressable onPress={onPress}>
|
||||||
|
<Text style={styles.seeAll}>Voir tout</Text>
|
||||||
|
</Pressable>
|
||||||
|
</View>
|
||||||
</View>
|
</View>
|
||||||
{children}
|
{children}
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ const LikedMusic = () => {
|
|||||||
liked: true,
|
liked: true,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
onPressPlus={() => navigate(Routes.WritingLyrics)}
|
||||||
>
|
>
|
||||||
<FlatList
|
<FlatList
|
||||||
onLayout={(e) => setContainerWidth(e.nativeEvent.layout.width)}
|
onLayout={(e) => setContainerWidth(e.nativeEvent.layout.width)}
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ const MyMusic = () => {
|
|||||||
liked: false,
|
liked: false,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
onPressPlus={() => navigate(Routes.WritingLyrics)}
|
||||||
>
|
>
|
||||||
<View style={{ gap: 10 }}>
|
<View style={{ gap: 10 }}>
|
||||||
{Array.isArray(projects) &&
|
{Array.isArray(projects) &&
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { BlurView } from "expo-blur";
|
import { BlurView } from "expo-blur";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Image, Platform, Pressable, Text, View } from "react-native";
|
import { Image, Platform, Pressable, Text, View } from "react-native";
|
||||||
|
import { SheetManager } from "react-native-actions-sheet";
|
||||||
import { icons } from "../../../assets";
|
import { icons } from "../../../assets";
|
||||||
import useLayoutType from "../../../hooks/useLayoutType";
|
import useLayoutType from "../../../hooks/useLayoutType";
|
||||||
import { Routes } from "../../../navigation";
|
import { Routes } from "../../../navigation";
|
||||||
@@ -20,6 +21,11 @@ const MyPlaylist = () => {
|
|||||||
<CardContainer
|
<CardContainer
|
||||||
label="Mes Playlists"
|
label="Mes Playlists"
|
||||||
onPress={() => navigate(Routes.AllMyPlaylist)}
|
onPress={() => navigate(Routes.AllMyPlaylist)}
|
||||||
|
onPressPlus={() =>
|
||||||
|
SheetManager.show("Playlist", {
|
||||||
|
payload: { startAtCreate: true },
|
||||||
|
})
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<View style={{ gap: 8 }}>
|
<View style={{ gap: 8 }}>
|
||||||
{playlists.map((item) => (
|
{playlists.map((item) => (
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ export default ({ navigation }) => {
|
|||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ItemContainer height={600} width={800} disableKeyboardHeight>
|
<ItemContainer height={500} width={800} disableKeyboardHeight>
|
||||||
<View style={{ gap: 30, paddingTop: 5, paddingHorizontal: 5 }}>
|
<View style={{ gap: 30, paddingTop: 5, paddingHorizontal: 5 }}>
|
||||||
<View style={{ gap: 2 }}>
|
<View style={{ gap: 2 }}>
|
||||||
<Text
|
<Text
|
||||||
|
|||||||
Reference in New Issue
Block a user