secullum-react-native-ui 4.7.4 → 4.7.5

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.
@@ -14,7 +14,8 @@ class DimensionsMonitor extends React.Component {
14
14
  }
15
15
  };
16
16
  this.isDesktop = (size) => {
17
- return size.width >= 1024;
17
+ const largura = react_native_1.Platform.OS === 'web' ? window.innerWidth : size.width;
18
+ return largura >= 1024;
18
19
  };
19
20
  this.state = {
20
21
  isDesktop: this.isDesktop(react_native_1.Dimensions.get('window'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.7.4",
3
+ "version": "4.7.5",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [