From 7134574b3e98b33ae81fb4a815f240bc897d1362 Mon Sep 17 00:00:00 2001 From: Alexander T Date: Wed, 9 Oct 2019 18:26:31 +0300 Subject: [PATCH] update react-native-video to 4.* (#1148) --- extensions/video/package.json | 2 +- extensions/video/src/native-common/Video.tsx | 1 + extensions/video/src/typings/react-native-video.d.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/video/package.json b/extensions/video/package.json index 1c43285f..0821aeba 100644 --- a/extensions/video/package.json +++ b/extensions/video/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "lodash": "^4.17.11", - "react-native-video": "2.3.1" + "react-native-video": "^4.4.4" }, "peerDependencies": { "react": "^16.0", diff --git a/extensions/video/src/native-common/Video.tsx b/extensions/video/src/native-common/Video.tsx index 1a68c54e..e87f7f79 100644 --- a/extensions/video/src/native-common/Video.tsx +++ b/extensions/video/src/native-common/Video.tsx @@ -44,6 +44,7 @@ class Video extends RX.Component { repeat={ this.props.loop } source={ source } style={ this.props.style } + useTextureView={ false } onEnd={ this._onEnd } onBuffer={ this._onBuffer } onLoadStart={ this.props.onLoadStart} diff --git a/extensions/video/src/typings/react-native-video.d.ts b/extensions/video/src/typings/react-native-video.d.ts index 274f5036..15ebc609 100644 --- a/extensions/video/src/typings/react-native-video.d.ts +++ b/extensions/video/src/typings/react-native-video.d.ts @@ -56,6 +56,7 @@ declare module 'react-native-video' { controls?: boolean; currentTime?: number; progressUpdateInterval?: number; + useTextureView?: boolean; onLoadStart?: () => void; onLoad?: (info: VideoInfo) => void; onBuffer?: (bufferInfo: VideoBufferInfo) => void;