@umituz/react-native-video-editor 1.1.41 → 1.1.43
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 +1 -1
- package/src/VideoEditor.tsx +3 -3
- package/README.md +0 -92
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-video-editor",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.43",
|
|
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",
|
package/src/VideoEditor.tsx
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import React, { useState, useMemo, useRef, useCallback } from "react";
|
|
8
8
|
import { View, TouchableOpacity, StyleSheet } from "react-native";
|
|
9
9
|
import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
10
|
-
import { BottomSheetModal } from "@umituz/react-native-design-system/molecules";
|
|
10
|
+
import { BottomSheetModal, type BottomSheetModalRef } from "@umituz/react-native-design-system/molecules";
|
|
11
11
|
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
12
12
|
import { useSafeAreaInsets } from "@umituz/react-native-design-system/safe-area";
|
|
13
13
|
|
|
@@ -42,8 +42,8 @@ export const VideoEditor: React.FC<VideoEditorProps> = ({
|
|
|
42
42
|
const [playbackRate, setPlaybackRate] = useState(DEFAULT_PLAYBACK_RATE);
|
|
43
43
|
const [activeTool, setActiveTool] = useState<ActiveTool>(null);
|
|
44
44
|
|
|
45
|
-
const filterSheetRef = useRef<
|
|
46
|
-
const speedSheetRef = useRef<
|
|
45
|
+
const filterSheetRef = useRef<BottomSheetModalRef>(null);
|
|
46
|
+
const speedSheetRef = useRef<BottomSheetModalRef>(null);
|
|
47
47
|
|
|
48
48
|
const handleToggleTool = useCallback((tool: Exclude<ActiveTool, null>) => {
|
|
49
49
|
if (activeTool === tool) {
|
package/README.md
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
# @umituz/react-native-video-editor
|
|
2
|
-
|
|
3
|
-
Professional video editor package with layer-based timeline, multiple layer types, and export functionality.
|
|
4
|
-
|
|
5
|
-
## Features
|
|
6
|
-
|
|
7
|
-
- Layer-based editing system (text, image, shape, audio, animation)
|
|
8
|
-
- Timeline management with scenes
|
|
9
|
-
- Playback controls
|
|
10
|
-
- History/undo functionality
|
|
11
|
-
- Video export with customizable settings
|
|
12
|
-
- Bottom sheet integration for layer editing
|
|
13
|
-
|
|
14
|
-
## Installation
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
npm install @umituz/react-native-video-editor
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Peer Dependencies
|
|
21
|
-
|
|
22
|
-
This package requires the following peer dependencies:
|
|
23
|
-
|
|
24
|
-
```json
|
|
25
|
-
{
|
|
26
|
-
"react": ">=18.2.0",
|
|
27
|
-
"react-native": ">=0.74.0",
|
|
28
|
-
"@umituz/react-native-design-system": ">=1.0.0",
|
|
29
|
-
"zustand": ">=4.0.0"
|
|
30
|
-
}
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Usage
|
|
34
|
-
|
|
35
|
-
### Hooks
|
|
36
|
-
|
|
37
|
-
```typescript
|
|
38
|
-
import {
|
|
39
|
-
useEditorLayers,
|
|
40
|
-
useEditorScenes,
|
|
41
|
-
useEditorPlayback,
|
|
42
|
-
useEditorHistory,
|
|
43
|
-
useEditorBottomSheet,
|
|
44
|
-
useEditorActions,
|
|
45
|
-
} from "@umituz/react-native-video-editor";
|
|
46
|
-
|
|
47
|
-
// Use hooks in your component
|
|
48
|
-
const { layers, addLayer, removeLayer } = useEditorLayers();
|
|
49
|
-
const { scenes, addScene, removeScene } = useEditorScenes();
|
|
50
|
-
const { isPlaying, play, pause } = useEditorPlayback();
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
### Components
|
|
54
|
-
|
|
55
|
-
```typescript
|
|
56
|
-
import {
|
|
57
|
-
EditorHeader,
|
|
58
|
-
EditorPreviewArea,
|
|
59
|
-
EditorTimeline,
|
|
60
|
-
EditorToolPanel,
|
|
61
|
-
TextLayerEditor,
|
|
62
|
-
ImageLayerEditor,
|
|
63
|
-
ShapeLayerEditor,
|
|
64
|
-
AudioEditor,
|
|
65
|
-
AnimationEditor,
|
|
66
|
-
ExportDialog,
|
|
67
|
-
} from "@umituz/react-native-video-editor";
|
|
68
|
-
|
|
69
|
-
// Use components in your editor screen
|
|
70
|
-
<EditorHeader />
|
|
71
|
-
<EditorPreviewArea />
|
|
72
|
-
<EditorTimeline />
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Services
|
|
76
|
-
|
|
77
|
-
```typescript
|
|
78
|
-
import {
|
|
79
|
-
layerOperationsService,
|
|
80
|
-
sceneOperationsService,
|
|
81
|
-
exportOrchestratorService,
|
|
82
|
-
} from "@umituz/react-native-video-editor";
|
|
83
|
-
|
|
84
|
-
// Use services for business logic
|
|
85
|
-
layerOperationsService.duplicateLayer(layerId);
|
|
86
|
-
sceneOperationsService.addScene(sceneData);
|
|
87
|
-
exportOrchestratorService.exportVideo(options);
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
## License
|
|
91
|
-
|
|
92
|
-
MIT
|