update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { View, Text, Image, Pressable } from "react-native";
|
||||
import { View, Text, Image, Pressable, Platform } from "react-native";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { ai, icons } from "../../assets";
|
||||
import { BlurView } from "expo-blur";
|
||||
@@ -69,7 +69,7 @@ const CreatingSong = ({ active, config }) => {
|
||||
const elapsed = moment().diff(moment(startDate));
|
||||
const pct = Math.max(
|
||||
0,
|
||||
Math.min(100, Math.floor((elapsed / totalMs) * 100)),
|
||||
Math.min(100, Math.floor((elapsed / totalMs) * 100))
|
||||
);
|
||||
setProgress(pct);
|
||||
if (pct >= 100) {
|
||||
@@ -119,10 +119,11 @@ const CreatingSong = ({ active, config }) => {
|
||||
{
|
||||
sunoTaskId: taskId,
|
||||
musicStatus: "GENERATING",
|
||||
generationStartAt: firebase.firestore.FieldValue.serverTimestamp(),
|
||||
generationStartAt:
|
||||
firebase.firestore.FieldValue.serverTimestamp(),
|
||||
updatedAt: firebase.firestore.FieldValue.serverTimestamp(),
|
||||
},
|
||||
{ merge: true },
|
||||
{ merge: true }
|
||||
);
|
||||
}
|
||||
} catch (e) {
|
||||
@@ -179,6 +180,9 @@ const CreatingSong = ({ active, config }) => {
|
||||
intensity={40}
|
||||
tint="dark"
|
||||
style={{ flex: 1, padding: 10, paddingBottom: 20 }}
|
||||
experimentalBlurMethod={
|
||||
Platform.OS !== "ios" ? "dimezisBlurView" : "none"
|
||||
}
|
||||
>
|
||||
<Pressable
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user