@butternutbox/pawprint-native 0.19.1 → 0.19.2
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
|
@@ -7,7 +7,8 @@ import {
|
|
|
7
7
|
FlatList,
|
|
8
8
|
TouchableWithoutFeedback,
|
|
9
9
|
View,
|
|
10
|
-
ViewProps
|
|
10
|
+
ViewProps,
|
|
11
|
+
useWindowDimensions
|
|
11
12
|
} from "react-native"
|
|
12
13
|
import { useSharedValue, useAnimatedStyle } from "react-native-reanimated"
|
|
13
14
|
import { KeyboardArrowDown } from "@butternutbox/pawprint-icons/core"
|
|
@@ -96,6 +97,7 @@ const NativeSelectPicker = React.forwardRef<View, NativeSelectPickerProps>(
|
|
|
96
97
|
) => {
|
|
97
98
|
const [isOpen, setIsOpen] = useState(false)
|
|
98
99
|
const { iconAnimationStyles } = useIconAnimation()
|
|
100
|
+
const { height: windowHeight } = useWindowDimensions()
|
|
99
101
|
|
|
100
102
|
const hasPlaceholder =
|
|
101
103
|
placeholder &&
|
|
@@ -231,7 +233,12 @@ const NativeSelectPicker = React.forwardRef<View, NativeSelectPickerProps>(
|
|
|
231
233
|
)
|
|
232
234
|
}}
|
|
233
235
|
style={{
|
|
234
|
-
|
|
236
|
+
// Fill the bottom-sheet dialog (sized 40-80% of the
|
|
237
|
+
// screen) rather than a tiny fixed cap, so all options
|
|
238
|
+
// are reachable/scrollable on Android like the iOS
|
|
239
|
+
// ActionSheet. Previously capped at spacing["8xl"],
|
|
240
|
+
// which showed only ~1 row.
|
|
241
|
+
maxHeight: windowHeight * 0.7
|
|
235
242
|
}}
|
|
236
243
|
/>
|
|
237
244
|
</S.AndroidDialog>
|