@umituz/react-native-ai-generation-content 1.17.119 → 1.17.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ import React, { useState, useCallback } from "react";
|
|
|
7
7
|
import { View, StyleSheet, TouchableOpacity, useWindowDimensions } from "react-native";
|
|
8
8
|
import { useAppDesignTokens, AtomicIcon } from "@umituz/react-native-design-system";
|
|
9
9
|
import { Image } from "expo-image";
|
|
10
|
-
import { useVideoPlayer, VideoView } from "expo-video";
|
|
10
|
+
import { useVideoPlayer, VideoView, type VideoPlayer } from "expo-video";
|
|
11
11
|
|
|
12
12
|
interface DetailVideoProps {
|
|
13
13
|
readonly videoUrl: string;
|
|
@@ -27,7 +27,7 @@ export const DetailVideo: React.FC<DetailVideoProps> = ({
|
|
|
27
27
|
const videoHeight = videoWidth / ASPECT_RATIO;
|
|
28
28
|
const [isPlaying, setIsPlaying] = useState(false);
|
|
29
29
|
|
|
30
|
-
const player = useVideoPlayer(videoUrl, (p) => {
|
|
30
|
+
const player = useVideoPlayer(videoUrl, (p: VideoPlayer) => {
|
|
31
31
|
p.loop = true;
|
|
32
32
|
});
|
|
33
33
|
|
|
@@ -226,7 +226,7 @@ export function useTextToVideoFeature(
|
|
|
226
226
|
return { success: false, error: errorMessage };
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
|
-
[userId, config.model, buildInput, extractResult, callbacks],
|
|
229
|
+
[userId, config.model, config.creditCost, buildInput, extractResult, callbacks],
|
|
230
230
|
);
|
|
231
231
|
|
|
232
232
|
const reset = useCallback(() => {
|