@umituz/react-native-video-editor 1.1.31 → 1.1.33

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.1.31",
3
+ "version": "1.1.33",
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",
@@ -39,7 +39,6 @@
39
39
  "expo-document-picker": ">=14.0.0",
40
40
  "expo-file-system": ">=17.0.0",
41
41
  "expo-image": ">=1.0.0",
42
- "expo-video": ">=3.0.0",
43
42
  "react": ">=18.2.0",
44
43
  "react-native": ">=0.74.0",
45
44
  "zustand": ">=4.0.0"
@@ -6,7 +6,15 @@
6
6
  import React, { useState, useCallback, useMemo } from "react";
7
7
  import { View, TouchableOpacity, StyleSheet, type ViewStyle } from "react-native";
8
8
  import { Image } from "expo-image";
9
- import { VideoView } from "expo-video";
9
+ // expo-video is optional lazy require so it is not auto-installed
10
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
11
+ let VideoView: React.ComponentType<any> = () => null;
12
+ try {
13
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
14
+ VideoView = require("expo-video").VideoView;
15
+ } catch {
16
+ // expo-video not installed in consuming app
17
+ }
10
18
  import { AtomicIcon, AtomicText } from "@umituz/react-native-design-system/atoms";
11
19
  import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
12
20
  import { useResponsive } from "@umituz/react-native-design-system/responsive";
@@ -4,7 +4,15 @@
4
4
  */
5
5
 
6
6
  import { useState, useCallback, useMemo } from "react";
7
- import { useVideoPlayer as useExpoVideoPlayer } from "expo-video";
7
+ // expo-video is optional module-level lazy require with null stub
8
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
+ let useExpoVideoPlayer: (...args: any[]) => any = () => null;
10
+ try {
11
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
12
+ useExpoVideoPlayer = require("expo-video").useVideoPlayer;
13
+ } catch {
14
+ // expo-video not installed in consuming app
15
+ }
8
16
 
9
17
  import type {
10
18
  VideoPlayerConfig,