@tactics/toddle-styleguide 5.4.40 → 5.4.43
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/babel.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tactics/toddle-styleguide",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.43",
|
|
4
4
|
"main": "index.tsx",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"prepublish": "tsc",
|
|
@@ -58,14 +58,12 @@
|
|
|
58
58
|
"react-native-gesture-handler": "~2.28.0",
|
|
59
59
|
"react-native-pager-view": "^6.9.1",
|
|
60
60
|
"react-native-picker-select": "^8.1.0",
|
|
61
|
-
"react-native-reanimated": "~4.1.1",
|
|
62
61
|
"react-native-safe-area-context": "~5.6.0",
|
|
63
62
|
"react-native-screens": "~4.16.0",
|
|
64
63
|
"react-native-svg": "15.12.1",
|
|
65
64
|
"react-native-web": "~0.21.0",
|
|
66
65
|
"react-native-wheel-picker-expo": "^0.5.4",
|
|
67
66
|
"react-native-wheely": "^0.6.0",
|
|
68
|
-
"react-native-worklets": "0.5.1",
|
|
69
67
|
"typescript": "~5.9.3"
|
|
70
68
|
},
|
|
71
69
|
"resolutions": {
|
|
@@ -28,15 +28,19 @@ type PopOverActionProps = {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
export const PopOverAction = ({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
isVisible,
|
|
32
|
+
children,
|
|
33
|
+
touchBackDrop,
|
|
34
|
+
}: PopOverActionProps) => {
|
|
35
35
|
const [windowHeight, setWindowHeight] = useState(
|
|
36
36
|
Dimensions.get('window').height
|
|
37
37
|
);
|
|
38
|
+
|
|
38
39
|
const [elementSize, setElementSize] = useState({ width: 0, height: 0 });
|
|
40
|
+
|
|
39
41
|
const [currentChildIndex, setCurrentChildIndex] = useState(0);
|
|
42
|
+
|
|
43
|
+
|
|
40
44
|
const [childDimensions, setChildDimensions] = useState<
|
|
41
45
|
LayoutChangeEvent['nativeEvent']['layout'][]
|
|
42
46
|
>([]);
|
|
@@ -86,16 +90,6 @@ export const PopOverAction = ({
|
|
|
86
90
|
}
|
|
87
91
|
};
|
|
88
92
|
|
|
89
|
-
useEffect(() => {
|
|
90
|
-
const childDimension = childDimensions[currentChildIndex];
|
|
91
|
-
if (childDimension) {
|
|
92
|
-
const { width, height } = childDimension;
|
|
93
|
-
if (width !== elementSize.width || height !== elementSize.height) {
|
|
94
|
-
setElementSize({ width, height });
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}, [childDimensions, currentChildIndex]);
|
|
98
|
-
|
|
99
93
|
useEffect(() => {
|
|
100
94
|
const updateWindowHeight = () => {
|
|
101
95
|
let availableHeight = Dimensions.get('window').height;
|