From 8ce7769ed0c95558f3a2cdb4437ae2a711baa084 Mon Sep 17 00:00:00 2001 From: Pavel Ihm Date: Wed, 23 Jun 2021 19:06:08 +0200 Subject: [PATCH 1/4] Expo web --- CHANGELOG.md | 3 + dist/index.js | 17 +- dist/props.js | 4 +- dist/utils.d.ts | 14 +- dist/utils.js | 9 +- lib/index.tsx | 24 ++- lib/props.tsx | 4 +- lib/utils.tsx | 31 ++- package.json | 8 +- yarn.lock | 523 ++++++++++++++++++++++++------------------------ 10 files changed, 342 insertions(+), 295 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 925e986..9f4ed70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # ChangeLog +## 2.0.1 +- Fix: Expo Web [#433](https://github.com/ihmpavel/expo-video-player/issues/433) + ## 2.0.0 (June 20, 2021) - Rewritten, simplified - If you are upgrading from version `1.x`, please check [Migration guide to version 2](https://github.com/ihmpavel/expo-video-player/blob/master/migration-1x-to-2x.md) diff --git a/dist/index.js b/dist/index.js index 2a8762a..024ad67 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,8 +1,8 @@ import { __awaiter, __rest } from "tslib"; import { Audio, Video } from 'expo-av'; -import { ActivityIndicator, Animated, StyleSheet, Text, TouchableNativeFeedback, TouchableWithoutFeedback, View, } from 'react-native'; +import { ActivityIndicator, Animated, StyleSheet, Text, TouchableWithoutFeedback, View, } from 'react-native'; import { ControlStates, ErrorSeverity, PlaybackStates } from './constants'; -import { ErrorMessage, deepMerge, getMinutesSecondsFromMilliseconds, styles } from './utils'; +import { ErrorMessage, TouchableButton, deepMerge, getMinutesSecondsFromMilliseconds, styles, } from './utils'; import { MaterialIcons } from '@expo/vector-icons'; import { defaultProps } from './props'; import { useEffect, useRef, useState } from 'react'; @@ -168,6 +168,7 @@ const VideoPlayer = (tempProps) => { backgroundColor: props.style.videoBackgroundColor, width: videoWidth, height: videoHeight, + maxWidth: '100%', }}>