NK
Size: a a a
NK
NK
M
K
NK
NB
MK
NK
NB
NK
MK
NB
Q
export const BottomSheetGorhom = (props: BottomSheetGorhomProps) => {
const [height, setHeight] = useState<number>(1)
const windowHeight = useWindowDimensions().height
const topSnapPoint = useMemo(() => {
const value = height / windowHeight
return value * 100 + '%'
}, [height, windowHeight])
return (
<BottomSheet
index={-1}
snapPoints={[-1, topSnapPoint]}
handleHeight={0}
>
<View onLayout={(e) => setHeight(e.nativeEvent.layout.height)}>{props.children}</View>
</BottomSheet>
)
}
NK
MK
MK
MK
L

MK