This commit is contained in:
Philip Cesar Garay
2025-09-09 17:17:11 +08:00
parent a3dc4f89b7
commit 69977aba2b
5 changed files with 84 additions and 17 deletions
+10 -5
View File
@@ -1,4 +1,4 @@
import { View, Dimensions } from "react-native";
import { View, Dimensions, Platform } from "react-native";
import React, { useMemo, useRef, useState } from "react";
import Page from "../../layouts/Page";
import MusicLandHeader from "../../components/MusicLandHeader";
@@ -73,7 +73,8 @@ const CreateLyricsWithAi = () => {
setStyle(sel.style);
if (!otherStyle && typeof sel.otherStyle === "string")
setOtherStyle(sel.otherStyle);
if (!audience && typeof sel.audience === "string") setAudience(sel.audience);
if (!audience && typeof sel.audience === "string")
setAudience(sel.audience);
// Structure choisie (string) si déjà enregistrée dans selections
if (structure == null && typeof sel.structure === "string" && sel.structure)
@@ -216,7 +217,11 @@ const CreateLyricsWithAi = () => {
}, [selectedIndex, parentLayout?.height]);
return (
<Page headerType="NONE">
<Page
headerType="NONE"
behavior={Platform.OS === "ios" ? "padding" : "height"}
keyboardVerticalOffset={Platform.OS === "ios" ? 64 : 100}
>
<MusicLandHeader onPressBack={onPressBack} progress={progress} />
<View
style={{
@@ -312,8 +317,8 @@ const CreateLyricsWithAi = () => {
(Array.isArray(customStructure)
? customStructure
: Array.isArray(selectedProject?.config?.structure)
? selectedProject.config.structure
: [])
? selectedProject.config.structure
: [])
}
onChange={setCustomStructure}
/>