This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 58).
BottomSheet
A bottom sheet compatible with @gorhom/bottom-sheet.
A BottomSheet component with an API compatible with @gorhom/bottom-sheet. It wraps the platform-specific @expo/ui primitives: Jetpack Compose ModalBottomSheet on Android and SwiftUI BottomSheet on iOS. On web, it uses an HTML <dialog> bottom sheet.
If you need lower-level control over platform-specific styling, modifiers, or layout behavior, use the native primitives directly.


Installation
If you are installing this in an existing React Native app, make sure to install expo in your project.
Migrating from @gorhom/bottom-sheet
-
Update imports from:
import BottomSheet, { BottomSheetView } from '@gorhom/bottom-sheet';To use
@expo/ui/community/bottom-sheet:import BottomSheet, { BottomSheetView } from '@expo/ui/community/bottom-sheet'; -
GestureHandlerRootViewfromreact-native-gesture-handleris not required by this implementation. You can leave it in place if other parts of your app need it. -
Component and hook exports such as
BottomSheetBackdrop,BottomSheetHandle,BottomSheetFooter,BottomSheetDraggableView,BottomSheetVirtualizedList,BottomSheetFlashList,useBottomSheetModal,useBottomSheetSpringConfigs, anduseBottomSheetTimingConfigsare not supported. Some related prop types are exported for API compatibility.
Basic usage
BottomSheetModal
Use BottomSheetModal when migrating from @gorhom/bottom-sheet modal APIs. It starts closed and opens with present().
Dynamic sizing
When snapPoints is not provided, the sheet sizes to fit its content by default. Use BottomSheetView for the sheet content wrapper.
Scrollable React Native content
The bottom sheet supports a React Native FlatList or ScrollView (or a high-performance list like FlashList or Legend List) as a child for scrollable content. With nestedScrollEnabled, the list scrolls its own content first. Once it reaches the top edge, the remaining drag moves the sheet. BottomSheetFlatList and BottomSheetScrollView are also exported for @gorhom/bottom-sheet compatibility, but they are plain re-exports of the React Native components.
Platform behavior
@gorhom/bottom-sheet renders inline at the bottom of its parent view. This component uses native modal presentation on Android and iOS, and an HTML <dialog> on web.
This difference is intentional. @gorhom/bottom-sheet owns the gesture and animation layer through react-native-gesture-handler and react-native-reanimated, while @expo/ui/community/bottom-sheet delegates those behaviors to Jetpack Compose, SwiftUI, and an HTML <dialog> on web. As a result, this component is best suited for modal bottom sheet flows, including callsites that use the BottomSheet API rather than BottomSheetModal.
On iOS, to show a bottom sheet on top of another, nest the second
BottomSheetinside the first sheet's content rather than beside it. This is a limitation of the underlying SwiftUIsheetmodifier. See how to present multiple sheets for more information.
Supported exports
Compatibility notes
snapPoints,index,onChange,onClose,onDismiss,enablePanDownToClose, andenableDynamicSizingare supported.handleComponent={null}hides the native or web drag indicator. Custom handle components are not rendered on native platforms.backgroundStyleapplies fully on web. On Android,backgroundColoris used for the native container color. On iOS, the system sheet background is used.- Animation, over-drag, content panning, handle panning, keyboard behavior, custom backdrop, custom background, custom footer, animated value, and detached props are accepted for API compatibility but do not change behavior.
modifiersis an addition to the@gorhom/bottom-sheetAPI. It takes modifier configs from@expo/ui/swift-ui/modifiersor@expo/ui/jetpack-compose/modifiersand applies them to the native sheet's content on iOS and to theModalBottomSheeton Android. It is ignored on web.contentWindowInsetsis an addition to the@gorhom/bottom-sheetAPI. It sets the insets the Android sheet adds around its content. It is ignored on iOS and web.
Platform-specific modifiers
On iOS, SwiftUI applies the window's safe area inside the sheet. On a window with a horizontal inset, such as the side rail of a folded iPhone Duo, the sheet's content then stops short of the sheet's edge. Pass ignoreSafeArea through modifiers to let the content fill the sheet. The content is then responsible for its own insets, which react-native-safe-area-context reports inside the sheet.
import { View } from 'react-native'; import BottomSheet from '@expo/ui/community/bottom-sheet'; import { ignoreSafeArea } from '@expo/ui/swift-ui/modifiers'; export default function EdgeToEdgeSheet() { return ( <BottomSheet modifiers={[ignoreSafeArea({ edges: 'horizontal' })]}> <View style={{ height: 200, backgroundColor: 'tomato' }} /> </BottomSheet> ); }
Edge-to-edge content on Android
On Android, the sheet pads the top and bottom of its content clear of the system bars, display cutouts, and the keyboard. As a result, a scrolling list stops above the navigation bar. Pass contentWindowInsets with only the top inset to let the content run under the navigation bar, and pad the end of the list instead. With that value, the sheet adds no padding for the keyboard.
import { ScrollView } from 'react-native'; import BottomSheet from '@expo/ui/community/bottom-sheet'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; export default function EdgeToEdgeListSheet({ children }: { children: React.ReactNode }) { const insets = useSafeAreaInsets(); return ( <BottomSheet snapPoints={['50%', '100%']} contentWindowInsets={{ top: insets.top }}> <ScrollView nestedScrollEnabled contentContainerStyle={{ paddingBottom: insets.bottom }}> {children} </ScrollView> </BottomSheet> ); }
API
import BottomSheet from '@expo/ui/community/bottom-sheet';
Components
Type: React.Element<BottomSheetProps>
Bottom sheet component. Defaults to index={0} (open at first snap point on mount).
Props for the BottomSheet component.
API-compatible with @gorhom/bottom-sheet BottomSheetProps.
boolean • Default: trueWhether to animate the sheet from closed to initial snap point on mount.
ComponentType<BottomSheetBackdropProps>Custom backdrop component.
unionCustom background component.
Acceptable values are: ComponentType<BottomSheetBackgroundProps> | null
BottomSheetContentWindowInsetsInsets in dp that the native sheet adds around its content. Missing sides are 0.
By default, the sheet pads the top and bottom of the content clear of the system bars,
display cutouts, and the keyboard, so scrolling content stops above the navigation bar.
Pass { top: insets.top }, with insets from react-native-safe-area-context, to let
the content run under the navigation bar and pad its own end instead. The sheet then
adds no padding for the keyboard.
boolean • Default: trueWhether to enable content panning gesture.
boolean • Default: trueWhether the sheet should automatically size to fit its content.
boolean • Default: trueWhether to enable handle panning gesture.
boolean • Default: trueWhether to enable over-dragging the sheet.
boolean • Default: falseWhether the sheet can be dismissed by panning down.
ComponentType<BottomSheetFooterProps>Custom footer component.
unionCustom handle component. Pass null to hide the handle.
Acceptable values are: ComponentType<BottomSheetHandleProps> | null
StyleProp<ViewStyle>Style for the handle indicator.
number • Default: 0Initial snap point index. Set to -1 to start closed.
stringKeyboard behavior when the sheet has a text input.
Acceptable values are: 'interactive' | 'extend' | 'fillParent'
stringBehavior when the keyboard is dismissed.
Acceptable values are: 'none' | 'restore'
ModifierConfig[]Platform-specific modifier escape hatch. Pass an array of modifier configs from
@expo/ui/swift-ui/modifiers or @expo/ui/jetpack-compose/modifiers.
(index: number) => voidCallback when the current snap point index changes.
() => voidCallback when the bottom sheet is dismissed.
Compatible with @gorhom/bottom-sheet BottomSheetModal.onDismiss.
Alias for onClose.
number • Default: 2.5Resistance factor when over-dragging the sheet.
Ref<BottomSheetMethods>Ref to the bottom sheet component. Exposes imperative methods (snapToIndex,
expand, collapse, close, present, dismiss, etc.).
(string | number)[]Points for the bottom sheet to snap to, ordered from bottom to top.
Accepts pixel values (numbers) or percentage strings (e.g., '25%', '50%').
Example
snapPoints={['25%', '50%']} snapPoints={[200, 500]}
Type: React.Element<BottomSheetProps>
Modal variant of BottomSheet. Always starts closed regardless of the index prop.
Use present() to open at the snap point specified by index (defaults to 0).
Type: React.Element<BottomSheetViewProps>
A wrapper for content inside a BottomSheet.
In @gorhom/bottom-sheet, this enables dynamic content sizing.
Props for the BottomSheetView component.
Compatible with @gorhom/bottom-sheet BottomSheetViewProps.
boolean • Default: trueWhether to animate the sheet from closed to initial snap point on mount.
ComponentType<BottomSheetBackdropProps>Custom backdrop component.
unionCustom background component.
Acceptable values are: ComponentType<BottomSheetBackgroundProps> | null
BottomSheetContentWindowInsetsInsets in dp that the native sheet adds around its content. Missing sides are 0.
By default, the sheet pads the top and bottom of the content clear of the system bars,
display cutouts, and the keyboard, so scrolling content stops above the navigation bar.
Pass { top: insets.top }, with insets from react-native-safe-area-context, to let
the content run under the navigation bar and pad its own end instead. The sheet then
adds no padding for the keyboard.
boolean • Default: trueWhether to enable content panning gesture.
boolean • Default: trueWhether the sheet should automatically size to fit its content.
boolean • Default: trueWhether to enable handle panning gesture.
boolean • Default: trueWhether to enable over-dragging the sheet.
boolean • Default: falseWhether the sheet can be dismissed by panning down.
ComponentType<BottomSheetFooterProps>Custom footer component.
unionCustom handle component. Pass null to hide the handle.
Acceptable values are: ComponentType<BottomSheetHandleProps> | null
StyleProp<ViewStyle>Style for the handle indicator.
number • Default: 0Initial snap point index. Set to -1 to start closed.
stringKeyboard behavior when the sheet has a text input.
Acceptable values are: 'interactive' | 'extend' | 'fillParent'
stringBehavior when the keyboard is dismissed.
Acceptable values are: 'none' | 'restore'
ModifierConfig[]Platform-specific modifier escape hatch. Pass an array of modifier configs from
@expo/ui/swift-ui/modifiers or @expo/ui/jetpack-compose/modifiers.
(index: number) => voidCallback when the current snap point index changes.
() => voidCallback when the bottom sheet is dismissed.
Compatible with @gorhom/bottom-sheet BottomSheetModal.onDismiss.
Alias for onClose.
number • Default: 2.5Resistance factor when over-dragging the sheet.
Ref<BottomSheetMethods>Ref to the bottom sheet component. Exposes imperative methods (snapToIndex,
expand, collapse, close, present, dismiss, etc.).
(string | number)[]Points for the bottom sheet to snap to, ordered from bottom to top.
Accepts pixel values (numbers) or percentage strings (e.g., '25%', '50%').
Example
snapPoints={['25%', '50%']} snapPoints={[200, 500]}
Constants
Type: ScrollView
A scrollable view for use inside a BottomSheet.
Type: SectionList
A section list for use inside a BottomSheet.
Type: TextInput
A text input for use inside a BottomSheet.
Hooks
Hook to access the bottom sheet methods from within its children.
Must be used inside a BottomSheet component.
Returns the same methods available on the BottomSheet ref:
snapToIndex, snapToPosition, expand, collapse, close, forceClose, present, dismiss.
BottomSheetMethodsInterfaces
Props for custom backdrop components.
Compatible with @gorhom/bottom-sheet BottomSheetBackdropProps.
Props for custom background components.
Compatible with @gorhom/bottom-sheet BottomSheetBackgroundProps.
Insets in dp for the sides of the bottom sheet content. Missing sides are 0.
Props for custom footer components.
Compatible with @gorhom/bottom-sheet BottomSheetFooterProps.
Props for custom handle components.
Compatible with @gorhom/bottom-sheet BottomSheetHandleProps.
Imperative methods exposed via ref on the BottomSheet component.
Compatible with @gorhom/bottom-sheet BottomSheetMethods.
Types
Type: BottomSheetMethods
Bottom sheet component. Defaults to index={0} (open at first snap point on mount).
Type: BottomSheetMethods
Modal variant of BottomSheet. Always starts closed regardless of the index prop.
Use present() to open at the snap point specified by index (defaults to 0).