@umituz/react-native-video-editor 1.0.11 → 1.0.12
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-video-editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "Professional video editor with layer-based timeline, text/image/shape/audio/animation layers, and export functionality",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -4,18 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React, { useState, useCallback, useMemo, useEffect } from "react";
|
|
7
|
-
import {
|
|
8
|
-
View,
|
|
9
|
-
TouchableOpacity,
|
|
10
|
-
StyleSheet,
|
|
11
|
-
type ViewStyle,
|
|
12
|
-
} from "react-native";
|
|
7
|
+
import { View, TouchableOpacity, StyleSheet, type ViewStyle } from "react-native";
|
|
13
8
|
import { Image } from "expo-image";
|
|
14
9
|
import { VideoView } from "expo-video";
|
|
15
10
|
import {
|
|
11
|
+
useResponsive,
|
|
16
12
|
useAppDesignTokens,
|
|
17
13
|
AtomicIcon,
|
|
18
|
-
useResponsive,
|
|
19
14
|
} from "@umituz/react-native-design-system";
|
|
20
15
|
|
|
21
16
|
import type { VideoPlayerProps } from "../../types";
|
|
@@ -43,8 +38,10 @@ export const VideoPlayer: React.FC<VideoPlayerProps> = ({
|
|
|
43
38
|
contentFit = "cover",
|
|
44
39
|
style,
|
|
45
40
|
}) => {
|
|
46
|
-
|
|
41
|
+
// IMPORTANT: Call useResponsive BEFORE useAppDesignTokens to maintain consistent hook order
|
|
42
|
+
// useAppDesignTokens internally calls useResponsive, so order matters
|
|
47
43
|
const { width: screenWidth, horizontalPadding } = useResponsive();
|
|
44
|
+
const tokens = useAppDesignTokens();
|
|
48
45
|
const [showVideo, setShowVideo] = useState(autoPlay);
|
|
49
46
|
|
|
50
47
|
const { player, state, controls } = useVideoPlayerControl({
|