@ovotech/element-native 4.1.4 → 4.1.5-canary-c6ff081-276

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.
@@ -73,7 +73,7 @@ var FilterSelect = function (_a) {
73
73
  setMeasure({
74
74
  top: y - theme.core.space[3],
75
75
  left: x,
76
- right: x - (width + theme.core.space[3]),
76
+ right: react_native_1.Dimensions.get('window').width - (x + width),
77
77
  });
78
78
  });
79
79
  }, children: [(0, jsx_runtime_1.jsx)(P_1.P, { children: (0, jsx_runtime_1.jsx)(Strong_1.Strong, { children: selected.value === 'default'
@@ -5,7 +5,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
5
5
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
6
6
  import { numToPx } from '@ovotech/element-core';
7
7
  import { Fragment, useRef, useState } from 'react';
8
- import { Modal, ScrollView, View } from 'react-native';
8
+ import { Dimensions, Modal, ScrollView, View, } from 'react-native';
9
9
  import styled, { css, useTheme } from '../../styled.native';
10
10
  import { Divider } from '../Divider';
11
11
  import { Icon } from '../Icon';
@@ -47,7 +47,7 @@ export var FilterSelect = function (_a) {
47
47
  setMeasure({
48
48
  top: y - theme.core.space[3],
49
49
  left: x,
50
- right: x - (width + theme.core.space[3]),
50
+ right: Dimensions.get('window').width - (x + width),
51
51
  });
52
52
  });
53
53
  }, children: [_jsx(P, { children: _jsx(Strong, { children: selected.value === 'default'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ovotech/element-native",
3
- "version": "4.1.4",
3
+ "version": "4.1.5-canary-c6ff081-276",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,10 +14,10 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@backpackapp-io/react-native-toast": "^0.10.0",
17
+ "@ovotech/element-core": "3.0.1-canary-c6ff081-276",
17
18
  "deepmerge": "^4.2.2",
18
19
  "lodash.groupby": "^4.6.0",
19
- "react-native-reanimated-carousel": "^3.5.1",
20
- "@ovotech/element-core": "3.0.1"
20
+ "react-native-reanimated-carousel": "^3.5.1"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@babel/core": "^7.11.5",