@shoutem/ui 7.2.0 → 7.2.1
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.
|
@@ -5,6 +5,7 @@ import iframe from '@native-html/iframe-plugin';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { Text } from '../../components/Text';
|
|
7
7
|
import { View } from '../../components/View';
|
|
8
|
+
import { isAndroid } from '../../services';
|
|
8
9
|
import isValidVideoFormat from '../services/isValidVideoFormat';
|
|
9
10
|
|
|
10
11
|
const IframeRenderer = props => {
|
|
@@ -51,6 +52,12 @@ const IframeRenderer = props => {
|
|
|
51
52
|
<Vimeo
|
|
52
53
|
videoId={vimeoId}
|
|
53
54
|
style={{ height: shoutemStyle.vimeoVideo.height }}
|
|
55
|
+
// Prevents Android issue with iframe inside the scroll container
|
|
56
|
+
// Scrolling to bottom crashes the app
|
|
57
|
+
{...(isAndroid && {
|
|
58
|
+
overScrollMode: 'never',
|
|
59
|
+
androidLayerType: 'software',
|
|
60
|
+
})}
|
|
54
61
|
/>
|
|
55
62
|
);
|
|
56
63
|
}
|