From 55e0e4dcfa7f67cdc28ea53738dff46344a9ed04 Mon Sep 17 00:00:00 2001 From: Charlie Martin Date: Sat, 4 Aug 2018 17:28:33 -0400 Subject: [PATCH 01/14] Remove flash between poster and video This resolves https://github.com/react-native-community/react-native-video/issues/1128 --- Video.js | 40 +++++++++++++--------------------------- 1 file changed, 13 insertions(+), 27 deletions(-) diff --git a/Video.js b/Video.js index 5c6cd1d3..f351c3ff 100644 --- a/Video.js +++ b/Video.js @@ -248,35 +248,21 @@ export default class Video extends Component { onAudioBecomingNoisy: this._onAudioBecomingNoisy, }); - if (this.props.poster && this.state.showPoster) { - const posterStyle = { - position: 'absolute', - left: 0, - top: 0, - right: 0, - bottom: 0, - resizeMode: this.props.posterResizeMode || 'contain' - }; - - return ( - - - - - ); - } + const posterStyle = { + ...StyleSheet.absoluteFillObject, + resizeMode: this.props.posterResizeMode || 'contain', + }; return ( - + + + {this.props.poster && + this.state.showPoster && ( + + + + )} + ); } } From bbacb953458fffc38cba846d1e5b27e3066e78f1 Mon Sep 17 00:00:00 2001 From: David Narbutovich Date: Wed, 12 Sep 2018 11:27:36 +0300 Subject: [PATCH 02/14] Update TextTrackType.js Remove not needed import --- TextTrackType.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/TextTrackType.js b/TextTrackType.js index caff65a9..9dc14077 100644 --- a/TextTrackType.js +++ b/TextTrackType.js @@ -1,5 +1,3 @@ -import keyMirror from 'keymirror'; - export default { SRT: 'application/x-subrip', TTML: 'application/ttml+xml', From a135dd346e5e847e1f0d4c864ea57a67881a3848 Mon Sep 17 00:00:00 2001 From: David Narbutovich Date: Wed, 12 Sep 2018 23:01:28 +0300 Subject: [PATCH 03/14] Reduce package size --- .npmignore | 1 - package.json | 11 ++++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 46b411bf..00000000 --- a/.npmignore +++ /dev/null @@ -1 +0,0 @@ -/examples diff --git a/package.json b/package.json index 3051b567..cfef620d 100644 --- a/package.json +++ b/package.json @@ -44,5 +44,14 @@ "android": { "sourceDir": "./android-exoplayer" } - } + }, + "files":[ + "android-exoplayer", + "android", + "ios", + "windows", + "TextTrackType.js", + "react-native-video.podspec", + "VideoResizeMode.js" + ] } \ No newline at end of file From ea4c732c9593e5db24b1d46d6284a7977d5001f7 Mon Sep 17 00:00:00 2001 From: Hampton Maxwell Date: Sat, 22 Sep 2018 15:01:51 -0700 Subject: [PATCH 04/14] Reduce package size --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bc5b674..60460e2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ * Video caching cleanups [#1172](https://github.com/react-native-community/react-native-video/pull/1172) * Add ipod-library support [#926](https://github.com/react-native-community/react-native-video/pull/926/files) * Fix crash on ExoPlayer when there are no audio tracks [#1233](https://github.com/react-native-community/react-native-video/pull/1233) +* Reduce package size [#1231](https://github.com/react-native-community/react-native-video/pull/1231) +* Remove unnecessary import in TextTrackType [#1229](https://github.com/react-native-community/react-native-video/pull/1229) ### Version 3.2.0 * Basic fullscreen support for Android MediaPlayer [#1138](https://github.com/react-native-community/react-native-video/pull/1138) From 584559ea7599e90eb294020c2db888f11fe2fde1 Mon Sep 17 00:00:00 2001 From: Hampton Maxwell Date: Sat, 22 Sep 2018 15:03:22 -0700 Subject: [PATCH 05/14] Bump version to 3.2.1 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3051b567..13e79075 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-video", - "version": "3.2.0", + "version": "3.2.1", "description": "A