react-native-ui-lib 8.0.0-snapshot.7442 → 8.0.0-snapshot.7447

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ui-lib",
3
- "version": "8.0.0-snapshot.7442",
3
+ "version": "8.0.0-snapshot.7447",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -4,6 +4,7 @@ import { StyleSheet, Image } from 'react-native';
4
4
  import { Colors } from "../../style";
5
5
  import View from "../view";
6
6
  import Assets from "../../assets";
7
+ import Constants from "../../commons/Constants";
7
8
  const OVERLY_TYPES = {
8
9
  VERTICAL: 'vertical',
9
10
  TOP: 'top',
@@ -70,7 +71,7 @@ class Overlay extends PureComponent {
70
71
  </View>;
71
72
  };
72
73
  renderImage = (style, source) => {
73
- return <Image style={[styles.container, style]} resizeMode={'stretch'} source={source} />;
74
+ return <Image style={[styles.container, Constants.isWeb && styles.containerWeb, style]} resizeMode={'stretch'} source={source} />;
74
75
  };
75
76
  getImageSource = (type, intensity) => {
76
77
  if (type !== OVERLY_TYPES.SOLID) {
@@ -111,6 +112,9 @@ const styles = StyleSheet.create({
111
112
  ...StyleSheet.absoluteFillObject,
112
113
  width: undefined
113
114
  },
115
+ containerWeb: {
116
+ width: '100%'
117
+ },
114
118
  top: {
115
119
  bottom: undefined,
116
120
  height: '75%'