From bdf803e77204f2bd8d27684476e2b1af55f84572 Mon Sep 17 00:00:00 2001 From: Viraj-10 Date: Mon, 8 Aug 2022 11:58:38 +0530 Subject: [PATCH 1/5] fix: actionsheet ondrag state fix --- .../composites/Actionsheet/ActionsheetContent.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/composites/Actionsheet/ActionsheetContent.tsx b/src/components/composites/Actionsheet/ActionsheetContent.tsx index 83508725c..8feb057bf 100644 --- a/src/components/composites/Actionsheet/ActionsheetContent.tsx +++ b/src/components/composites/Actionsheet/ActionsheetContent.tsx @@ -28,6 +28,16 @@ const Content = memo( ...resolvedProps } = usePropsResolution('ActionsheetContent', props); + const handleCloseRef = React.useRef(null); + const handleCloseCallback = React.useCallback(() => { + let handleCloseCurrent = handleCloseRef.current; + //@ts-ignore + return handleCloseCurrent(); + }, []); + React.useEffect(() => { + handleCloseRef.current = handleClose; + }, [handleClose]); + const panResponder = React.useRef( PanResponder.create({ onStartShouldSetPanResponder: () => true, @@ -48,7 +58,7 @@ const Content = memo( toValue: { x: 0, y: sheetHeight.current }, duration: 150, useNativeDriver: true, - }).start(handleClose); + }).start(handleCloseCallback); setTimeout(() => { Animated.timing(pan, { From e138a3c1733585d93e7535ae8ebeb1d49419764f Mon Sep 17 00:00:00 2001 From: ankit-tailor Date: Wed, 17 Aug 2022 12:41:38 +0530 Subject: [PATCH 2/5] fix: disable hardware back press event --- src/components/composites/Toast/Toast.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/composites/Toast/Toast.tsx b/src/components/composites/Toast/Toast.tsx index 112100af9..3aa50506c 100644 --- a/src/components/composites/Toast/Toast.tsx +++ b/src/components/composites/Toast/Toast.tsx @@ -83,7 +83,11 @@ const CustomToast = ({ _overlay, _stack, _presenceTransition }: any) => { }); return getPositions().length > 0 ? ( - + {getPositions().map((position: string) => { if (Object.keys(POSITIONS).includes(position)) return ( From d4c4687a5106b4479f0daaf556db76f0d0d83131 Mon Sep 17 00:00:00 2001 From: ankit-tailor Date: Wed, 17 Aug 2022 13:35:40 +0530 Subject: [PATCH 3/5] fix: variant resolution --- src/components/primitives/Select/Select.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/primitives/Select/Select.tsx b/src/components/primitives/Select/Select.tsx index acbf9904e..65877824f 100644 --- a/src/components/primitives/Select/Select.tsx +++ b/src/components/primitives/Select/Select.tsx @@ -170,6 +170,7 @@ const Select = ( focusable={false} isDisabled={isDisabled} pointerEvents="none" + variant={props?.variant} /> ); From 649df067e21517fa4836f6e07afcd4de77adacbc Mon Sep 17 00:00:00 2001 From: ankit-tailor Date: Wed, 17 Aug 2022 17:29:29 +0530 Subject: [PATCH 4/5] fix: variant --- src/components/primitives/Select/Select.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/primitives/Select/Select.tsx b/src/components/primitives/Select/Select.tsx index 65877824f..3bbab6e90 100644 --- a/src/components/primitives/Select/Select.tsx +++ b/src/components/primitives/Select/Select.tsx @@ -31,6 +31,7 @@ const Select = ( isHovered: isHoveredProp, isFocused: isFocusedProp, isFocusVisible: isFocusVisibleProp, + variant, ...props }: ISelectProps, ref: any @@ -170,7 +171,7 @@ const Select = ( focusable={false} isDisabled={isDisabled} pointerEvents="none" - variant={props?.variant} + variant={variant} /> ); From 2f3b31c092301a5edce2a0008152719c2c54e42b Mon Sep 17 00:00:00 2001 From: Suraj Ahmed Date: Wed, 17 Aug 2022 17:38:16 +0530 Subject: [PATCH 5/5] v3.4.13-rc.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dbe96c441..fea807ae7 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "prettier --write" ] }, - "version": "3.4.12", + "version": "3.4.13-rc.0", "license": "MIT", "private": false, "main": "lib/commonjs/index",