--- id: bottomsheetview title: BottomSheetView description: a pre-integrated React Native View with BottomSheet gestures. image: /img/bottom-sheet-preview.gif slug: /components/bottomsheetview --- A pre-integrated `React Native` View with `BottomSheet` gestures. ## Props Inherits `ViewProps` from `react-native`. ### `focusHook` This needed when bottom sheet used with multiple scrollables to allow bottom sheet detect the current scrollable ref, especially when used with React Navigation. You will need to provide `useFocusEffect` from `@react-navigation/native`. | type | default | required | | -------- | ----------------- | -------- | | function | `React.useEffect` | NO | ## Example ```tsx import React, { useCallback, useRef, useMemo } from "react"; import { StyleSheet, View, Text, Button } from "react-native"; import BottomSheet, { BottomSheetView } from "@gorhom/bottom-sheet"; const App = () => { // hooks const sheetRef = useRef(null); // variables const snapPoints = useMemo(() => ["25%", "50%", "90%"], []); // callbacks const handleSheetChange = useCallback((index) => { console.log("handleSheetChange", index); }, []); const handleSnapPress = useCallback((index) => { sheetRef.current?.snapToIndex(index); }, []); const handleClosePress = useCallback(() => { sheetRef.current?.close(); }, []); // render return (