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", 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, { 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 ( diff --git a/src/components/primitives/Select/Select.tsx b/src/components/primitives/Select/Select.tsx index acbf9904e..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,6 +171,7 @@ const Select = ( focusable={false} isDisabled={isDisabled} pointerEvents="none" + variant={variant} /> );