Fix Task: #92
This commit is contained in:
@@ -19,7 +19,7 @@ const AppActionSheet = ({ children, props }) => {
|
|||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS === "ios" ? 20 : 10}
|
||||||
style={{
|
style={{
|
||||||
paddingTop: 36,
|
paddingTop: 36,
|
||||||
paddingHorizontal: 14,
|
paddingHorizontal: 14,
|
||||||
@@ -29,9 +29,9 @@ const AppActionSheet = ({ children, props }) => {
|
|||||||
borderTopRightRadius: 20,
|
borderTopRightRadius: 20,
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</BlurView>
|
</BlurView>
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ const BlurItemButton = ({ onPress, title = "" }) => {
|
|||||||
return (
|
return (
|
||||||
<Pressable onPress={onPress}>
|
<Pressable onPress={onPress}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS === "ios" ? 20 : 10}
|
||||||
style={styles.buttonContainer}
|
style={styles.buttonContainer}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Text style={styles.buttonText}>{title}</Text>
|
<Text style={styles.buttonText}>{title}</Text>
|
||||||
<Image
|
<Image
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ const BorderGradientButton = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={40}
|
intensity={Platform.OS === "ios" ? 40 : 10}
|
||||||
tint={tint}
|
tint={tint}
|
||||||
style={{
|
style={{
|
||||||
width: "100%",
|
width: "100%",
|
||||||
@@ -55,9 +55,9 @@ const BorderGradientButton = ({
|
|||||||
borderRadius: 14,
|
borderRadius: 14,
|
||||||
gap: 11,
|
gap: 11,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
{icon && <Image source={icon} style={size({ size: 16 })} />}
|
{icon && <Image source={icon} style={size({ size: 16 })} />}
|
||||||
<Text
|
<Text
|
||||||
|
|||||||
@@ -62,12 +62,12 @@ const ChatInput = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={30}
|
intensity={Platform.OS !== "ios" ? 10 : 30}
|
||||||
tint="dark"
|
tint="dark"
|
||||||
style={{ flex: 1, justifyContent: "center" }}
|
style={{ flex: 1, justifyContent: "center" }}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<FilesPreview
|
<FilesPreview
|
||||||
files={files}
|
files={files}
|
||||||
|
|||||||
@@ -91,9 +91,9 @@ const Input = ({
|
|||||||
|
|
||||||
<ContainerView
|
<ContainerView
|
||||||
tint="dark"
|
tint="dark"
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
style={{
|
style={{
|
||||||
...Style.containerRow,
|
...Style.containerRow,
|
||||||
...(isRoundedRectangle
|
...(isRoundedRectangle
|
||||||
|
|||||||
@@ -35,12 +35,12 @@ const ItemContainer = ({
|
|||||||
>
|
>
|
||||||
<View style={styles.blurContainer}>
|
<View style={styles.blurContainer}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={40}
|
intensity={Platform.OS !== "ios" ? 10 : 40}
|
||||||
tint="dark"
|
tint="dark"
|
||||||
style={{ flex: 1, padding: 6 }}
|
style={{ flex: 1, padding: 6 }}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</BlurView>
|
</BlurView>
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ const ItemContainer = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={40}
|
intensity={Platform.OS !== "ios" ? 10 : 40}
|
||||||
tint="dark"
|
tint="dark"
|
||||||
style={{
|
style={{
|
||||||
padding: 6,
|
padding: 6,
|
||||||
@@ -55,9 +55,9 @@ const ItemContainer = ({
|
|||||||
alignSelf: "center",
|
alignSelf: "center",
|
||||||
height: "99.2%",
|
height: "99.2%",
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</BlurView>
|
</BlurView>
|
||||||
|
|||||||
+12
-12
@@ -89,7 +89,7 @@ const MoreMenu = ({
|
|||||||
{inPlaylist && (
|
{inPlaylist && (
|
||||||
<Pressable onPress={removeFromPlaylist}>
|
<Pressable onPress={removeFromPlaylist}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
paddingHorizontal: 12,
|
paddingHorizontal: 12,
|
||||||
paddingVertical: 10,
|
paddingVertical: 10,
|
||||||
@@ -97,9 +97,9 @@ const MoreMenu = ({
|
|||||||
borderRadius: 12,
|
borderRadius: 12,
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
@@ -116,7 +116,7 @@ const MoreMenu = ({
|
|||||||
|
|
||||||
<Pressable onPress={addToPlaylist}>
|
<Pressable onPress={addToPlaylist}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
paddingHorizontal: 12,
|
paddingHorizontal: 12,
|
||||||
paddingVertical: 10,
|
paddingVertical: 10,
|
||||||
@@ -124,9 +124,9 @@ const MoreMenu = ({
|
|||||||
borderRadius: 12,
|
borderRadius: 12,
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
@@ -153,7 +153,7 @@ const MoreMenu = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
paddingHorizontal: 12,
|
paddingHorizontal: 12,
|
||||||
paddingVertical: 10,
|
paddingVertical: 10,
|
||||||
@@ -161,9 +161,9 @@ const MoreMenu = ({
|
|||||||
borderRadius: 12,
|
borderRadius: 12,
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -55,9 +55,9 @@ const Overlay = ({
|
|||||||
...StyleSheet.absoluteFillObject,
|
...StyleSheet.absoluteFillObject,
|
||||||
...contentContainerStyle,
|
...contentContainerStyle,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Pressable
|
<Pressable
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -20,9 +20,9 @@ const SearchBar = ({
|
|||||||
gap: 10,
|
gap: 10,
|
||||||
...Style.containerRow,
|
...Style.containerRow,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Image source={icons.search} />
|
<Image source={icons.search} />
|
||||||
<TextInput
|
<TextInput
|
||||||
|
|||||||
@@ -195,16 +195,16 @@ const CommentsBottomSheet = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: 1,
|
||||||
backgroundColor: Palette.glass,
|
backgroundColor: Palette.glass,
|
||||||
borderTopLeftRadius: 16,
|
borderTopLeftRadius: 16,
|
||||||
borderTopRightRadius: 16,
|
borderTopRightRadius: 16,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<View style={{ paddingTop: 10, paddingBottom: 8 }}>
|
<View style={{ paddingTop: 10, paddingBottom: 8 }}>
|
||||||
<Pressable
|
<Pressable
|
||||||
@@ -322,7 +322,7 @@ const CommentsBottomSheet = () => {
|
|||||||
{/* INPUT en bas du contenu */}
|
{/* INPUT en bas du contenu */}
|
||||||
<View style={{ height: 12 }} />
|
<View style={{ height: 12 }} />
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
@@ -333,9 +333,9 @@ const CommentsBottomSheet = () => {
|
|||||||
height: 54,
|
height: 54,
|
||||||
borderRadius: 16,
|
borderRadius: 16,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<TextInput
|
<TextInput
|
||||||
placeholder="Ajouter un commentaire"
|
placeholder="Ajouter un commentaire"
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ const CreatePassword = () => {
|
|||||||
title="Inscription"
|
title="Inscription"
|
||||||
>
|
>
|
||||||
<View style={{ flex: 1, paddingTop: 20 }}>
|
<View style={{ flex: 1, paddingTop: 20 }}>
|
||||||
<ItemContainer height={300}>
|
<ItemContainer height={300} disableKeyboardHeight>
|
||||||
<View style={{ gap: 32, paddingTop: 5, paddingHorizontal: 5 }}>
|
<View style={{ gap: 32, paddingTop: 5, paddingHorizontal: 5 }}>
|
||||||
<View style={{ gap: 16 }}>
|
<View style={{ gap: 16 }}>
|
||||||
<View style={{ gap: 2 }}>
|
<View style={{ gap: 2 }}>
|
||||||
|
|||||||
+16
-10
@@ -18,13 +18,15 @@ const CreateSongs = () => {
|
|||||||
const { userProjects = [] } = useUser();
|
const { userProjects = [] } = useUser();
|
||||||
const projects = useMemo(
|
const projects = useMemo(
|
||||||
() => (Array.isArray(userProjects) ? userProjects.slice(0, 3) : []),
|
() => (Array.isArray(userProjects) ? userProjects.slice(0, 3) : []),
|
||||||
[userProjects],
|
[userProjects]
|
||||||
);
|
);
|
||||||
const fmtDate = (ts) => {
|
const fmtDate = (ts) => {
|
||||||
try {
|
try {
|
||||||
const d = ts?.toDate ? ts.toDate() : ts ? new Date(ts) : null;
|
const d = ts?.toDate ? ts.toDate() : ts ? new Date(ts) : null;
|
||||||
if (!d || Number.isNaN(d.getTime())) return "";
|
if (!d || Number.isNaN(d.getTime())) return "";
|
||||||
const dd = `${d.getDate().toString().padStart(2, "0")}/${(d.getMonth() + 1)
|
const dd = `${d.getDate().toString().padStart(2, "0")}/${(
|
||||||
|
d.getMonth() + 1
|
||||||
|
)
|
||||||
.toString()
|
.toString()
|
||||||
.padStart(2, "0")}`;
|
.padStart(2, "0")}`;
|
||||||
return dd;
|
return dd;
|
||||||
@@ -67,7 +69,7 @@ const CreateSongs = () => {
|
|||||||
resizeMode="contain"
|
resizeMode="contain"
|
||||||
/>
|
/>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={40}
|
intensity={Platform.OS !== "ios" ? 10 : 40}
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: 1,
|
||||||
borderRadius: 20,
|
borderRadius: 20,
|
||||||
@@ -79,9 +81,9 @@ const CreateSongs = () => {
|
|||||||
gap: 20,
|
gap: 20,
|
||||||
paddingVertical: 20,
|
paddingVertical: 20,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Pressable
|
<Pressable
|
||||||
style={{
|
style={{
|
||||||
@@ -144,9 +146,9 @@ const CreateSongs = () => {
|
|||||||
backgroundColor: Palette.glass,
|
backgroundColor: Palette.glass,
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<View>
|
<View>
|
||||||
<Text
|
<Text
|
||||||
@@ -194,7 +196,11 @@ const CreateSongs = () => {
|
|||||||
))}
|
))}
|
||||||
</View>
|
</View>
|
||||||
<GradientButton
|
<GradientButton
|
||||||
title={selectedIndex !== null ? "Poursuivre la création" : "Créer un texte"}
|
title={
|
||||||
|
selectedIndex !== null
|
||||||
|
? "Poursuivre la création"
|
||||||
|
: "Créer un texte"
|
||||||
|
}
|
||||||
containerStyle={{
|
containerStyle={{
|
||||||
width: "80%",
|
width: "80%",
|
||||||
alignSelf: "center",
|
alignSelf: "center",
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const PlaybacksCard = ({
|
|||||||
return (
|
return (
|
||||||
<Pressable onPress={onPress}>
|
<Pressable onPress={onPress}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
tint="dark"
|
tint="dark"
|
||||||
style={{
|
style={{
|
||||||
...Style.containerSpaceBetween,
|
...Style.containerSpaceBetween,
|
||||||
@@ -26,9 +26,9 @@ const PlaybacksCard = ({
|
|||||||
backgroundColor: Palette.glass,
|
backgroundColor: Palette.glass,
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
import { View, Text, Platform, Pressable, Image as RNImage } from "react-native";
|
import {
|
||||||
|
View,
|
||||||
|
Text,
|
||||||
|
Platform,
|
||||||
|
Pressable,
|
||||||
|
Image as RNImage,
|
||||||
|
} from "react-native";
|
||||||
import { Image as ExpoImage } from "expo-image";
|
import { Image as ExpoImage } from "expo-image";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { img } from "../../../assets";
|
import { img } from "../../../assets";
|
||||||
@@ -8,7 +14,13 @@ import { Palette } from "../../../styles";
|
|||||||
import { FONT_FAMILY } from "../../../styles/Fonts";
|
import { FONT_FAMILY } from "../../../styles/Fonts";
|
||||||
import CoinBadge from "./CoinBadge";
|
import CoinBadge from "./CoinBadge";
|
||||||
|
|
||||||
const SongCard = ({ rank = 1, title = "Sans titre", artist = "MusicLand", coverUrl = null, onPress = null }) => {
|
const SongCard = ({
|
||||||
|
rank = 1,
|
||||||
|
title = "Sans titre",
|
||||||
|
artist = "MusicLand",
|
||||||
|
coverUrl = null,
|
||||||
|
onPress = null,
|
||||||
|
}) => {
|
||||||
return (
|
return (
|
||||||
<Pressable
|
<Pressable
|
||||||
onPress={onPress || undefined}
|
onPress={onPress || undefined}
|
||||||
@@ -33,7 +45,7 @@ const SongCard = ({ rank = 1, title = "Sans titre", artist = "MusicLand", coverU
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: 1,
|
||||||
borderRadius: 12,
|
borderRadius: 12,
|
||||||
@@ -44,9 +56,9 @@ const SongCard = ({ rank = 1, title = "Sans titre", artist = "MusicLand", coverU
|
|||||||
...Style.containerRow,
|
...Style.containerRow,
|
||||||
}}
|
}}
|
||||||
tint="dark"
|
tint="dark"
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<View style={{ flex: 1, ...Style.containerRow, gap: 15 }}>
|
<View style={{ flex: 1, ...Style.containerRow, gap: 15 }}>
|
||||||
<Text
|
<Text
|
||||||
|
|||||||
+7
-9
@@ -20,7 +20,7 @@ const Home = () => {
|
|||||||
const { userProjects = [], resetSelectedProject, selectProject } = useUser();
|
const { userProjects = [], resetSelectedProject, selectProject } = useUser();
|
||||||
const projects = useMemo(
|
const projects = useMemo(
|
||||||
() => (Array.isArray(userProjects) ? userProjects : []),
|
() => (Array.isArray(userProjects) ? userProjects : []),
|
||||||
[userProjects],
|
[userProjects]
|
||||||
);
|
);
|
||||||
const [, setTooltip] = useGlobal("_tooltip");
|
const [, setTooltip] = useGlobal("_tooltip");
|
||||||
const [menuTop, setMenuTop] = useState(0);
|
const [menuTop, setMenuTop] = useState(0);
|
||||||
@@ -42,7 +42,7 @@ const Home = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: 1,
|
||||||
borderRadius: 20,
|
borderRadius: 20,
|
||||||
@@ -51,9 +51,9 @@ const Home = () => {
|
|||||||
padding: 12,
|
padding: 12,
|
||||||
gap: 8,
|
gap: 8,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
@@ -110,9 +110,7 @@ const Home = () => {
|
|||||||
onPress: async () => {
|
onPress: async () => {
|
||||||
try {
|
try {
|
||||||
if (!menuProjectId) return;
|
if (!menuProjectId) return;
|
||||||
await projectsRef
|
await projectsRef.doc(menuProjectId).delete();
|
||||||
.doc(menuProjectId)
|
|
||||||
.delete();
|
|
||||||
setTooltip({
|
setTooltip({
|
||||||
type: "success",
|
type: "success",
|
||||||
text: "Projet supprimé",
|
text: "Projet supprimé",
|
||||||
@@ -126,7 +124,7 @@ const Home = () => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
{ cancelable: true },
|
{ cancelable: true }
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
|||||||
@@ -45,15 +45,15 @@ const AllMyPlaylist = () => {
|
|||||||
>
|
>
|
||||||
<View style={{ borderRadius: 12, overflow: "hidden" }}>
|
<View style={{ borderRadius: 12, overflow: "hidden" }}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
...Style.containerSpaceBetween,
|
...Style.containerSpaceBetween,
|
||||||
height: 59,
|
height: 59,
|
||||||
paddingHorizontal: 10,
|
paddingHorizontal: 10,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -104,15 +104,15 @@ const MusicCard = ({
|
|||||||
)}
|
)}
|
||||||
<View style={styles.blurContainer}>
|
<View style={styles.blurContainer}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS === "ios" ? 20 : 10}
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: 1,
|
||||||
...Style.containerSpaceBetween,
|
...Style.containerSpaceBetween,
|
||||||
paddingHorizontal: 8,
|
paddingHorizontal: 8,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<View>
|
<View>
|
||||||
<Text numberOfLines={2} style={styles.title}>
|
<Text numberOfLines={2} style={styles.title}>
|
||||||
|
|||||||
@@ -30,15 +30,15 @@ const MyPlaylist = () => {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
...Style.containerSpaceBetween,
|
...Style.containerSpaceBetween,
|
||||||
height: 59,
|
height: 59,
|
||||||
paddingHorizontal: 10,
|
paddingHorizontal: 10,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -43,11 +43,11 @@ const ResearchHeader = ({
|
|||||||
/>
|
/>
|
||||||
<View style={styles.blurContainer}>
|
<View style={styles.blurContainer}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={styles.blurView}
|
style={styles.blurView}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Text style={styles.menu}>{item}</Text>
|
<Text style={styles.menu}>{item}</Text>
|
||||||
</BlurView>
|
</BlurView>
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ export default ({ navigation }) => {
|
|||||||
hideBackButton
|
hideBackButton
|
||||||
>
|
>
|
||||||
<View style={{ flex: 1, paddingTop: 20 }}>
|
<View style={{ flex: 1, paddingTop: 20 }}>
|
||||||
<ItemContainer height={600}>
|
<ItemContainer height={600} 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
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ const NewMusicOptions = () => {
|
|||||||
<Pressable key={index} onPress={() => onPressOption(index, item)}>
|
<Pressable key={index} onPress={() => onPressOption(index, item)}>
|
||||||
<BlurView
|
<BlurView
|
||||||
tint="dark"
|
tint="dark"
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
@@ -135,9 +135,9 @@ const NewMusicOptions = () => {
|
|||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
backgroundColor: Palette.glass,
|
backgroundColor: Palette.glass,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -70,12 +70,12 @@ const CreatingDecor = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={40}
|
intensity={Platform.OS !== "ios" ? 10 : 40}
|
||||||
tint="dark"
|
tint="dark"
|
||||||
style={{ flex: 1, padding: 10, paddingBottom: 20 }}
|
style={{ flex: 1, padding: 10, paddingBottom: 20 }}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<View style={{ flex: 1, justifyContent: "flex-end", gap: 20 }}>
|
<View style={{ flex: 1, justifyContent: "flex-end", gap: 20 }}>
|
||||||
<View>
|
<View>
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ const PlaybackItem = ({ item, isActive, userCache, getUserByUid }) => {
|
|||||||
>
|
>
|
||||||
<BlurView
|
<BlurView
|
||||||
tint="dark"
|
tint="dark"
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
paddingVertical: 6,
|
paddingVertical: 6,
|
||||||
paddingHorizontal: 12,
|
paddingHorizontal: 12,
|
||||||
@@ -292,9 +292,9 @@ const PlaybackItem = ({ item, isActive, userCache, getUserByUid }) => {
|
|||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
backgroundColor: isFollowing ? "#FFFFFF1A" : undefined,
|
backgroundColor: isFollowing ? "#FFFFFF1A" : undefined,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
@@ -385,7 +385,7 @@ const PlaybackItem = ({ item, isActive, userCache, getUserByUid }) => {
|
|||||||
<View style={{ paddingHorizontal: 28 }}>
|
<View style={{ paddingHorizontal: 28 }}>
|
||||||
<BlurView
|
<BlurView
|
||||||
tint="dark"
|
tint="dark"
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
paddingHorizontal: 14,
|
paddingHorizontal: 14,
|
||||||
paddingVertical: 8,
|
paddingVertical: 8,
|
||||||
@@ -393,9 +393,9 @@ const PlaybackItem = ({ item, isActive, userCache, getUserByUid }) => {
|
|||||||
backgroundColor: Palette.glass,
|
backgroundColor: Palette.glass,
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
{alignedWords?.length > 0 ? (
|
{alignedWords?.length > 0 ? (
|
||||||
<KaraokeLyrics
|
<KaraokeLyrics
|
||||||
@@ -424,7 +424,8 @@ const Playbacks = () => {
|
|||||||
const [activeIndex, setActiveIndex] = useState(0);
|
const [activeIndex, setActiveIndex] = useState(0);
|
||||||
const carouselRef = useRef(null);
|
const carouselRef = useRef(null);
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const focusProjectId = route?.params?.projectId || route?.params?.focusId || null;
|
const focusProjectId =
|
||||||
|
route?.params?.projectId || route?.params?.focusId || null;
|
||||||
const userCache = useRef(new Map());
|
const userCache = useRef(new Map());
|
||||||
const { getUserByUid } = useUser() || {};
|
const { getUserByUid } = useUser() || {};
|
||||||
const isFocused = useIsFocused();
|
const isFocused = useIsFocused();
|
||||||
|
|||||||
@@ -122,11 +122,11 @@ const DownloadSongs = ({ route }) => {
|
|||||||
>
|
>
|
||||||
<BlurView
|
<BlurView
|
||||||
style={styles.blurView}
|
style={styles.blurView}
|
||||||
intensity={40}
|
intensity={Platform.OS !== "ios" ? 10 : 40}
|
||||||
tint="dark"
|
tint="dark"
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Text style={styles.label}>
|
<Text style={styles.label}>
|
||||||
Télécharger{" "}
|
Télécharger{" "}
|
||||||
@@ -145,11 +145,11 @@ const DownloadSongs = ({ route }) => {
|
|||||||
>
|
>
|
||||||
<BlurView
|
<BlurView
|
||||||
style={styles.blurView}
|
style={styles.blurView}
|
||||||
intensity={40}
|
intensity={Platform.OS !== "ios" ? 10 : 40}
|
||||||
tint="dark"
|
tint="dark"
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Text style={styles.label}>
|
<Text style={styles.label}>
|
||||||
Diffuser{" "}
|
Diffuser{" "}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ const ChangeEmailAddress = () => {
|
|||||||
try {
|
try {
|
||||||
const credential = firebase.auth.EmailAuthProvider.credential(
|
const credential = firebase.auth.EmailAuthProvider.credential(
|
||||||
user.email,
|
user.email,
|
||||||
currentPassword,
|
currentPassword
|
||||||
);
|
);
|
||||||
await user.reauthenticateWithCredential(credential);
|
await user.reauthenticateWithCredential(credential);
|
||||||
} catch (reauthErr) {
|
} catch (reauthErr) {
|
||||||
@@ -96,7 +96,7 @@ const ChangeEmailAddress = () => {
|
|||||||
>
|
>
|
||||||
<View style={{ flex: 1, marginTop: responsiveHeight(2) }}>
|
<View style={{ flex: 1, marginTop: responsiveHeight(2) }}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
paddingHorizontal: 20,
|
paddingHorizontal: 20,
|
||||||
paddingVertical: 23,
|
paddingVertical: 23,
|
||||||
@@ -104,9 +104,9 @@ const ChangeEmailAddress = () => {
|
|||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
backgroundColor: Palette.glass,
|
backgroundColor: Palette.glass,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<EditInput
|
<EditInput
|
||||||
placeholder="Adresse mail"
|
placeholder="Adresse mail"
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ const ChangePassword = () => {
|
|||||||
|
|
||||||
const credential = firebase.auth.EmailAuthProvider.credential(
|
const credential = firebase.auth.EmailAuthProvider.credential(
|
||||||
user.email,
|
user.email,
|
||||||
oldVal,
|
oldVal
|
||||||
);
|
);
|
||||||
await user.reauthenticateWithCredential(credential);
|
await user.reauthenticateWithCredential(credential);
|
||||||
await user.updatePassword(newVal);
|
await user.updatePassword(newVal);
|
||||||
@@ -58,7 +58,7 @@ const ChangePassword = () => {
|
|||||||
>
|
>
|
||||||
<View style={{ flex: 1, marginTop: responsiveHeight(2) }}>
|
<View style={{ flex: 1, marginTop: responsiveHeight(2) }}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
paddingHorizontal: 20,
|
paddingHorizontal: 20,
|
||||||
paddingVertical: 16,
|
paddingVertical: 16,
|
||||||
@@ -67,9 +67,9 @@ const ChangePassword = () => {
|
|||||||
backgroundColor: Palette.glass,
|
backgroundColor: Palette.glass,
|
||||||
gap: 4,
|
gap: 4,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<EditInput
|
<EditInput
|
||||||
placeholder="Mot de passe actuel"
|
placeholder="Mot de passe actuel"
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
import { BlurView } from "expo-blur";
|
import { BlurView } from "expo-blur";
|
||||||
import * as ImagePicker from "expo-image-picker";
|
import * as ImagePicker from "expo-image-picker";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { Platform, Pressable, Text, View, Image as RNImage } from "react-native";
|
import {
|
||||||
|
Platform,
|
||||||
|
Pressable,
|
||||||
|
Text,
|
||||||
|
View,
|
||||||
|
Image as RNImage,
|
||||||
|
} from "react-native";
|
||||||
import { Image as ExpoImage } from "expo-image";
|
import { Image as ExpoImage } from "expo-image";
|
||||||
import { responsiveHeight } from "react-native-responsive-dimensions";
|
import { responsiveHeight } from "react-native-responsive-dimensions";
|
||||||
import { useGlobal } from "reactn";
|
import { useGlobal } from "reactn";
|
||||||
@@ -132,7 +138,7 @@ const EditProfile = () => {
|
|||||||
>
|
>
|
||||||
<View style={{ flex: 1, marginTop: responsiveHeight(2) }}>
|
<View style={{ flex: 1, marginTop: responsiveHeight(2) }}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
paddingVertical: 14,
|
paddingVertical: 14,
|
||||||
backgroundColor: Palette.glass,
|
backgroundColor: Palette.glass,
|
||||||
@@ -141,9 +147,9 @@ const EditProfile = () => {
|
|||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
gap: 24,
|
gap: 24,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Pressable style={{ alignItems: "center" }} onPress={onChangePicture}>
|
<Pressable style={{ alignItems: "center" }} onPress={onChangePicture}>
|
||||||
<ExpoImage
|
<ExpoImage
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ const Language = () => {
|
|||||||
>
|
>
|
||||||
<View style={{ flex: 1, marginTop: responsiveHeight(2) }}>
|
<View style={{ flex: 1, marginTop: responsiveHeight(2) }}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
paddingVertical: 10,
|
paddingVertical: 10,
|
||||||
paddingHorizontal: 20,
|
paddingHorizontal: 20,
|
||||||
@@ -37,9 +37,9 @@ const Language = () => {
|
|||||||
borderRadius: 20,
|
borderRadius: 20,
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -31,7 +31,10 @@ export default (props) => {
|
|||||||
setTooltip({ type: "success", text: "Préférence enregistrée" });
|
setTooltip({ type: "success", text: "Préférence enregistrée" });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
setIsSwitch(!next);
|
setIsSwitch(!next);
|
||||||
setTooltip({ type: "error", text: e?.message || "Enregistrement impossible" });
|
setTooltip({
|
||||||
|
type: "error",
|
||||||
|
text: e?.message || "Enregistrement impossible",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -49,7 +52,7 @@ export default (props) => {
|
|||||||
>
|
>
|
||||||
<View style={{ flex: 1, marginTop: responsiveHeight(2) }}>
|
<View style={{ flex: 1, marginTop: responsiveHeight(2) }}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
gap: 12,
|
gap: 12,
|
||||||
paddingVertical: 15,
|
paddingVertical: 15,
|
||||||
@@ -58,9 +61,9 @@ export default (props) => {
|
|||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
backgroundColor: Palette.glass,
|
backgroundColor: Palette.glass,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<View style={Style.containerSpaceBetween}>
|
<View style={Style.containerSpaceBetween}>
|
||||||
<Text
|
<Text
|
||||||
|
|||||||
@@ -248,15 +248,15 @@ const Profile = () => {
|
|||||||
<View style={{ flex: 1, marginTop: responsiveHeight(2), gap: 20 }}>
|
<View style={{ flex: 1, marginTop: responsiveHeight(2), gap: 20 }}>
|
||||||
<View style={{ borderRadius: 20, overflow: "hidden" }}>
|
<View style={{ borderRadius: 20, overflow: "hidden" }}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS === "ios" ? 20 : 10}
|
||||||
style={{
|
style={{
|
||||||
paddingVertical: 14,
|
paddingVertical: 14,
|
||||||
backgroundColor: Palette.glass,
|
backgroundColor: Palette.glass,
|
||||||
paddingHorizontal: 20,
|
paddingHorizontal: 20,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<View style={{ alignItems: "center" }}>
|
<View style={{ alignItems: "center" }}>
|
||||||
<ExpoImage
|
<ExpoImage
|
||||||
@@ -389,11 +389,11 @@ const Profile = () => {
|
|||||||
/>
|
/>
|
||||||
<View style={styles.blurContainer}>
|
<View style={styles.blurContainer}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS === "ios" ? 20 : 10}
|
||||||
style={styles.blurView}
|
style={styles.blurView}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Text style={styles.menu}>{item}</Text>
|
<Text style={styles.menu}>{item}</Text>
|
||||||
</BlurView>
|
</BlurView>
|
||||||
|
|||||||
@@ -12,7 +12,13 @@ import { FONT_FAMILY } from "../../../styles/Fonts";
|
|||||||
import { BlurView } from "expo-blur";
|
import { BlurView } from "expo-blur";
|
||||||
import { icons } from "../../../assets";
|
import { icons } from "../../../assets";
|
||||||
|
|
||||||
const EditInput = ({ label = "", placeholder = "", type = "default", value = "", setValue = () => {} }) => {
|
const EditInput = ({
|
||||||
|
label = "",
|
||||||
|
placeholder = "",
|
||||||
|
type = "default",
|
||||||
|
value = "",
|
||||||
|
setValue = () => {},
|
||||||
|
}) => {
|
||||||
const [showPassword, setShowPassword] = useState(false);
|
const [showPassword, setShowPassword] = useState(false);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -42,7 +48,7 @@ const EditInput = ({ label = "", placeholder = "", type = "default", value = "",
|
|||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={20}
|
intensity={Platform.OS !== "ios" ? 10 : 20}
|
||||||
style={{
|
style={{
|
||||||
paddingHorizontal: 12,
|
paddingHorizontal: 12,
|
||||||
borderRadius: 12,
|
borderRadius: 12,
|
||||||
@@ -51,9 +57,9 @@ const EditInput = ({ label = "", placeholder = "", type = "default", value = "",
|
|||||||
height: 52,
|
height: 52,
|
||||||
...Style.containerRow,
|
...Style.containerRow,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<TextInput
|
<TextInput
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const Register = () => {
|
|||||||
title="Inscription"
|
title="Inscription"
|
||||||
>
|
>
|
||||||
<View style={{ flex: 1, paddingTop: 20 }}>
|
<View style={{ flex: 1, paddingTop: 20 }}>
|
||||||
<ItemContainer height={360}>
|
<ItemContainer height={360} disableKeyboardHeight>
|
||||||
<View style={{ gap: 32, paddingTop: 5, paddingHorizontal: 5 }}>
|
<View style={{ gap: 32, paddingTop: 5, paddingHorizontal: 5 }}>
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ const CreatingSong = ({ active, config }) => {
|
|||||||
const elapsed = moment().diff(moment(startDate));
|
const elapsed = moment().diff(moment(startDate));
|
||||||
const pct = Math.max(
|
const pct = Math.max(
|
||||||
0,
|
0,
|
||||||
Math.min(100, Math.floor((elapsed / totalMs) * 100)),
|
Math.min(100, Math.floor((elapsed / totalMs) * 100))
|
||||||
);
|
);
|
||||||
setProgress(pct);
|
setProgress(pct);
|
||||||
if (pct >= 100) {
|
if (pct >= 100) {
|
||||||
@@ -130,7 +130,7 @@ const CreatingSong = ({ active, config }) => {
|
|||||||
firebase.firestore.FieldValue.serverTimestamp(),
|
firebase.firestore.FieldValue.serverTimestamp(),
|
||||||
updatedAt: firebase.firestore.FieldValue.serverTimestamp(),
|
updatedAt: firebase.firestore.FieldValue.serverTimestamp(),
|
||||||
},
|
},
|
||||||
{ merge: true },
|
{ merge: true }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@@ -184,12 +184,12 @@ const CreatingSong = ({ active, config }) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={40}
|
intensity={Platform.OS !== "ios" ? 10 : 40}
|
||||||
tint="dark"
|
tint="dark"
|
||||||
style={{ flex: 1, padding: 10, paddingBottom: 20 }}
|
style={{ flex: 1, padding: 10, paddingBottom: 20 }}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<Pressable
|
<Pressable
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -194,11 +194,7 @@ const GeneratingSong = () => {
|
|||||||
{ text: "Oui", onPress: () => startMusicGenerationOnce() },
|
{ text: "Oui", onPress: () => startMusicGenerationOnce() },
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}, [
|
}, [isFocused, selectedProject?.title, selectedProject?.musicStatus]);
|
||||||
isFocused,
|
|
||||||
selectedProject?.title,
|
|
||||||
selectedProject?.musicStatus,
|
|
||||||
]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page headerType="NONE" backgroundImg={background.studioBG2}>
|
<Page headerType="NONE" backgroundImg={background.studioBG2}>
|
||||||
@@ -236,7 +232,7 @@ const GeneratingSong = () => {
|
|||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={40}
|
intensity={Platform.OS !== "ios" ? 10 : 40}
|
||||||
tint="dark"
|
tint="dark"
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: 1,
|
||||||
@@ -245,18 +241,18 @@ const GeneratingSong = () => {
|
|||||||
padding: 12,
|
padding: 12,
|
||||||
backgroundColor: "#FFFFFF0A",
|
backgroundColor: "#FFFFFF0A",
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<View style={{ flex: 1 }}>
|
<View style={{ flex: 1 }}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={40}
|
intensity={Platform.OS !== "ios" ? 10 : 40}
|
||||||
tint="dark"
|
tint="dark"
|
||||||
style={{ flex: 1, padding: 10, paddingBottom: 20 }}
|
style={{ flex: 1, padding: 10, paddingBottom: 20 }}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<View style={{ flex: 1, justifyContent: "flex-end", gap: 20 }}>
|
<View style={{ flex: 1, justifyContent: "flex-end", gap: 20 }}>
|
||||||
<Text
|
<Text
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ const SongReady = () => {
|
|||||||
{[0, 1].map((idx) => (
|
{[0, 1].map((idx) => (
|
||||||
<BlurView
|
<BlurView
|
||||||
key={idx}
|
key={idx}
|
||||||
intensity={40}
|
intensity={Platform.OS !== "ios" ? 10 : 40}
|
||||||
tint="dark"
|
tint="dark"
|
||||||
style={{
|
style={{
|
||||||
borderRadius: 16,
|
borderRadius: 16,
|
||||||
@@ -201,9 +201,9 @@ const SongReady = () => {
|
|||||||
padding: 12,
|
padding: 12,
|
||||||
backgroundColor: "#FFFFFF0A",
|
backgroundColor: "#FFFFFF0A",
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{ flexDirection: "row", alignItems: "center", gap: 12 }}
|
style={{ flexDirection: "row", alignItems: "center", gap: 12 }}
|
||||||
|
|||||||
@@ -153,12 +153,12 @@ const CreatingLyrics = ({ active, config, selections }) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={40}
|
intensity={Platform.OS !== "ios" ? 10 : 40}
|
||||||
tint="dark"
|
tint="dark"
|
||||||
style={{ flex: 1, padding: 10, paddingBottom: 20 }}
|
style={{ flex: 1, padding: 10, paddingBottom: 20 }}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
<View style={{ flex: 1, justifyContent: "flex-end", gap: 20 }}>
|
<View style={{ flex: 1, justifyContent: "flex-end", gap: 20 }}>
|
||||||
<Text
|
<Text
|
||||||
|
|||||||
@@ -45,9 +45,9 @@ const CustomizeSongStructure = ({ baseStructure = [], onChange }) => {
|
|||||||
const Row = ({ item: rowData }) => (
|
const Row = ({ item: rowData }) => (
|
||||||
<View style={styles.itemContainer}>
|
<View style={styles.itemContainer}>
|
||||||
<BlurView
|
<BlurView
|
||||||
intensity={30}
|
intensity={Platform.OS !== "ios" ? 10 : 30}
|
||||||
style={styles.rowBlur}
|
style={styles.rowBlur}
|
||||||
experimentalBlurMethod={Platform.OS !== "ios" ? "dimezisBlurView" : "none"}
|
// experimentalBlurMethod={Platform.OS !== "ios" ? "dimezisBlurView" : "none"}
|
||||||
>
|
>
|
||||||
<View style={{ ...Style.containerSpaceBetween, alignItems: "center" }}>
|
<View style={{ ...Style.containerSpaceBetween, alignItems: "center" }}>
|
||||||
<View>
|
<View>
|
||||||
@@ -79,7 +79,10 @@ const CustomizeSongStructure = ({ baseStructure = [], onChange }) => {
|
|||||||
title="Personnalise la structure de ta chanson"
|
title="Personnalise la structure de ta chanson"
|
||||||
subTitle="Réorganise par glisser-déposer"
|
subTitle="Réorganise par glisser-déposer"
|
||||||
/>
|
/>
|
||||||
<View style={{ flex: 1 }} onLayout={(e) => setContainerLayout(e.nativeEvent.layout)}>
|
<View
|
||||||
|
style={{ flex: 1 }}
|
||||||
|
onLayout={(e) => setContainerLayout(e.nativeEvent.layout)}
|
||||||
|
>
|
||||||
<Animated.ScrollView
|
<Animated.ScrollView
|
||||||
ref={scrollRef}
|
ref={scrollRef}
|
||||||
contentContainerStyle={{ paddingVertical: 4, paddingBottom: 24 }}
|
contentContainerStyle={{ paddingVertical: 4, paddingBottom: 24 }}
|
||||||
@@ -94,7 +97,9 @@ const CustomizeSongStructure = ({ baseStructure = [], onChange }) => {
|
|||||||
// Enable auto-scroll when dragging near edges
|
// Enable auto-scroll when dragging near edges
|
||||||
scrollableRef={scrollRef}
|
scrollableRef={scrollRef}
|
||||||
onDragEnd={({ data: newData }) => {
|
onDragEnd={({ data: newData }) => {
|
||||||
const values = (newData || []).map((it) => it?.value).filter(Boolean);
|
const values = (newData || [])
|
||||||
|
.map((it) => it?.value)
|
||||||
|
.filter(Boolean);
|
||||||
onChange?.(values);
|
onChange?.(values);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -100,9 +100,9 @@ const CreateLyricsHeader = ({
|
|||||||
gap: 4,
|
gap: 4,
|
||||||
...blurViewStyle,
|
...blurViewStyle,
|
||||||
}}
|
}}
|
||||||
experimentalBlurMethod={
|
// experimentalBlurMethod={
|
||||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||||
}
|
// }
|
||||||
>
|
>
|
||||||
{title && (
|
{title && (
|
||||||
<Text
|
<Text
|
||||||
|
|||||||
Reference in New Issue
Block a user