@shoutem/ui 7.1.0-beta.0 → 7.1.0-beta.2

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.
@@ -1,5 +1,5 @@
1
1
  import React, { PureComponent } from 'react';
2
- import { InteractionManager, LayoutAnimation, ScrollView } from 'react-native';
2
+ import { InteractionManager, LayoutAnimation, ScrollView, Platform } from 'react-native';
3
3
  import autoBindReact from 'auto-bind/react';
4
4
  import _ from 'lodash';
5
5
  import PropTypes from 'prop-types';
@@ -219,7 +219,14 @@ class HorizontalPager extends PureComponent {
219
219
  );
220
220
 
221
221
  return (
222
- <View key={pageIndex} style={{ width: containerWidth }}>
222
+ <View
223
+ key={pageIndex}
224
+ style={{
225
+ width: containerWidth,
226
+ ...(Platform.OS === 'web' && {
227
+ height: '100%',
228
+ })
229
+ }}>
223
230
  {pageContent}
224
231
  </View>
225
232
  );
@@ -1,5 +1,6 @@
1
1
  import React, { PureComponent } from 'react';
2
2
  import { Image, Modal, TouchableOpacity, View } from 'react-native';
3
+ import { ImagePropTypes } from 'deprecated-react-native-prop-types';
3
4
  import autoBindReact from 'auto-bind/react';
4
5
  import PropTypes from 'prop-types';
5
6
  import { makeZoomable } from '@shoutem/animation';
@@ -84,7 +85,7 @@ class ImagePreview extends PureComponent {
84
85
  ImagePreview.propTypes = {
85
86
  style: PropTypes.object.isRequired,
86
87
  height: PropTypes.number,
87
- source: Image.propTypes.source,
88
+ source: ImagePropTypes.source,
88
89
  width: PropTypes.number,
89
90
  };
90
91
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoutem/ui",
3
- "version": "7.1.0-beta.0",
3
+ "version": "7.1.0-beta.2",
4
4
  "description": "Styleable set of components for React Native applications",
5
5
  "scripts": {
6
6
  "lint": "eslint .",