@fto-consult/expo-ui 2.47.4 → 2.47.8

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": "@fto-consult/expo-ui",
3
- "version": "2.47.4",
3
+ "version": "2.47.8",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -61,7 +61,7 @@
61
61
  "@emotion/native": "^11.10.0",
62
62
  "@expo/html-elements": "^0.2.0",
63
63
  "@expo/vector-icons": "^13.0.0",
64
- "@fto-consult/common": "^2.9.7",
64
+ "@fto-consult/common": "^2.11.5",
65
65
  "@gorhom/portal": "^1.0.14",
66
66
  "@react-native-async-storage/async-storage": "~1.17.3",
67
67
  "@react-native-community/datetimepicker": "6.5.2",
@@ -18,8 +18,8 @@ const ScrollViewComponent = React.forwardRef(({virtualized,contentProps,containe
18
18
  return new Promise((resolve)=>{
19
19
  if(layoutRef.current && layoutRef.current.measureInWindow){
20
20
  layoutRef.current.measureInWindow((x, y, width, height) => {
21
- const r = { x, y, width, height };
22
- setLayout({...Dimensions.get("window"),layout:r});
21
+ const r = {...Dimensions.get("window"),layout:{ x, y, width, height }};
22
+ setLayout(r);
23
23
  hasInitializedRef.current = true;
24
24
  resolve(r);
25
25
  });
@@ -45,7 +45,7 @@ const ScrollViewComponent = React.forwardRef(({virtualized,contentProps,containe
45
45
  },[]);
46
46
 
47
47
  const cStyle = {maxHeight:Math.max(height-100,250),width:'100%'};
48
- if(isObj(layout.layout) && typeof layout.layout.y =='number'){
48
+ if(isObj(layout.layout) && typeof layout.layout.y =='number' && layout.layout.y>=10){
49
49
  const {layout : {x,y}} = layout;
50
50
  const minHeight = height - y;
51
51
  if(minHeight> 0){