achery-ui 0.13.0 → 0.13.1
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/dist/native/index.cjs
CHANGED
|
@@ -5639,6 +5639,7 @@ var BottomSheet = ({
|
|
|
5639
5639
|
style
|
|
5640
5640
|
}) => {
|
|
5641
5641
|
const { tokens: tokens$1 } = useTheme();
|
|
5642
|
+
const insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
5642
5643
|
const slideAnim = react.useRef(new reactNative.Animated.Value(0)).current;
|
|
5643
5644
|
const scrimAnim = react.useRef(new reactNative.Animated.Value(0)).current;
|
|
5644
5645
|
react.useEffect(() => {
|
|
@@ -5715,6 +5716,9 @@ var BottomSheet = ({
|
|
|
5715
5716
|
borderTopColor: tokens$1.border,
|
|
5716
5717
|
// Square corners — spec is explicit about this
|
|
5717
5718
|
borderRadius: 0,
|
|
5719
|
+
// Clear the home indicator so the last row is never cut off / hard
|
|
5720
|
+
// to tap on devices with a bottom safe area.
|
|
5721
|
+
paddingBottom: Math.max(insets.bottom, tokens.spacing.sp4),
|
|
5718
5722
|
transform: [{ translateY }]
|
|
5719
5723
|
},
|
|
5720
5724
|
style
|