Commit 4753e30 1 parent 8bf294f commit 4753e30 Copy full SHA for 4753e30
File tree 4 files changed +17
-9
lines changed
4 files changed +17
-9
lines changed Original file line number Diff line number Diff line change
1
+ ## [ 2.16.1]
2
+
3
+ ### Fixed
4
+
5
+ * [ react-native-videoeditorsdk] Fixed error when cancelling the editor.
6
+ * [ react-native-videoeditorsdk] Fixed missing export of ` VideoSegment ` type.
7
+ * [ react-native-videoeditorsdk] Fixed wrong types for ` VESDK.openEditor ` .
8
+
1
9
## [ 2.16.0]
2
10
3
11
### Added
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ declare class VESDK {
60
60
* @note Remote resources are not optimized and therefore should be downloaded
61
61
* in advance and then passed to the editor as local resources.
62
62
*
63
- * @param {AssetURI | [ AssetURI] | [ VideoSegment] | {uri: string} } video The source of the video to be edited.
63
+ * @param {AssetURI | AssetURI[ ] | VideoSegment[ ] | {uri: string} } video The source of the video to be edited.
64
64
* Can be either a URI, an object with a member `uri`, or an asset reference
65
65
* which can be optained by, e.g., `require('./video.mp4')` as `number`.
66
66
*
@@ -78,7 +78,7 @@ declare class VESDK {
78
78
* is dismissed without exporting the edited video.
79
79
*/
80
80
static openEditor (
81
- video : AssetURI | [ AssetURI ] | [ VideoSegment ] | { uri : string } ,
81
+ video : AssetURI | AssetURI [ ] | VideoSegment [ ] | { uri : string } ,
82
82
configuration ?: Configuration ,
83
83
serialization ?: object ,
84
84
videoSize ?: Size
@@ -183,5 +183,5 @@ declare class VideoEditorModal extends Component<
183
183
> { }
184
184
185
185
export * from "./configuration" ;
186
- export { VESDK , VideoEditorModal } ;
186
+ export { VESDK , VideoEditorModal , VideoSegment } ;
187
187
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ class VESDK {
123
123
* @note Remote resources are not optimized and therefore should be downloaded
124
124
* in advance and then passed to the editor as local resources.
125
125
*
126
- * @param {AssetURI | [ AssetURI] | [ VideoSegment] | {uri: string} } video The source of the video to be edited.
126
+ * @param {AssetURI | AssetURI[ ] | VideoSegment[ ] | {uri: string} } video The source of the video to be edited.
127
127
* Can be either a URI, an object with a member `uri`, or an asset reference
128
128
* which can be optained by, e.g., `require('./video.mp4')` as `number`.
129
129
*
@@ -174,9 +174,9 @@ class VESDK {
174
174
source = resolveStaticAsset ( video , isAndroid ) ;
175
175
result = await RNVideoEditorSDK . present ( source , configuration , resolvedSerialization ) ;
176
176
}
177
- const resolvedResult = { ... result }
178
-
179
- if ( configuration . export . video . segments == true ) {
177
+ if ( result == null ) return null ;
178
+ const resolvedResult = { ... result } ;
179
+ if ( configuration ? .export ? .video ? .segments == true ) {
180
180
const release = ( ) => {
181
181
if ( isAndroid ) {
182
182
return RNVideoEditorSDK . releaseTemporaryData ( result . identifier ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-videoeditorsdk" ,
3
3
"title" : " React Native module for VideoEditor SDK" ,
4
- "version" : " 2.16.0 " ,
4
+ "version" : " 2.16.1 " ,
5
5
"description" : " A React Native module for VideoEditor SDK. Integrate the video editor into your own HTML5, iOS or Android app - in minutes!" ,
6
6
"main" : " index.js" ,
7
7
"typings" : " index.d.ts" ,
35
35
"react-native" : " >=0.60.0 <1.0.x"
36
36
},
37
37
"dependencies" : {
38
- "react-native-imglysdk" : " 2.16.0 "
38
+ "react-native-imglysdk" : " 2.16.1 "
39
39
}
40
40
}
You can’t perform that action at this time.
0 commit comments