This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

BottomSheet

A bottom sheet compatible with @gorhom/bottom-sheet.

Android
iOS
Web
Included in Expo Go

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.

A bottom sheet presented over a dimmed screenA bottom sheet presented over a dimmed screen

Installation

Terminal
- npx expo install @expo/ui
- yarn expo install @expo/ui
- pnpm expo install @expo/ui
- bun expo install @expo/ui

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';
  • GestureHandlerRootView from react-native-gesture-handler is 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, and useBottomSheetTimingConfigs are not supported. Some related prop types are exported for API compatibility.

Basic usage

BottomSheetExample.tsx
import { useRef } from 'react'; import { Button, Text, useColorScheme, View } from 'react-native'; import BottomSheet, { BottomSheetView } from '@expo/ui/community/bottom-sheet'; export default function BottomSheetExample() { const colorScheme = useColorScheme(); const ink = { color: colorScheme === 'dark' ? '#FFFFFF' : '#000000' }; const sheetRef = useRef<BottomSheet>(null); return ( <View style={{ flex: 1 }}> <Button title="Open" onPress={() => sheetRef.current?.snapToIndex(0)} /> <BottomSheet ref={sheetRef} snapPoints={['25%', '50%', '90%']} index={-1} onChange={index => { console.log('onChange', index); }} onClose={() => { console.log('closed'); }} enablePanDownToClose> <BottomSheetView style={{ flex: 1, padding: 24, alignItems: 'center' }}> <Text style={ink}>Sheet content</Text> </BottomSheetView> </BottomSheet> </View> ); }

BottomSheetModal

Use BottomSheetModal when migrating from @gorhom/bottom-sheet modal APIs. It starts closed and opens with present().

BottomSheetModalExample.tsx
import { useRef } from 'react'; import { Button, Text, useColorScheme, View } from 'react-native'; import { BottomSheetModal, BottomSheetView } from '@expo/ui/community/bottom-sheet'; export default function BottomSheetModalExample() { const colorScheme = useColorScheme(); const ink = { color: colorScheme === 'dark' ? '#FFFFFF' : '#000000' }; const modalRef = useRef<BottomSheetModal>(null); return ( <View style={{ flex: 1 }}> <Button title="Present" onPress={() => modalRef.current?.present()} /> <BottomSheetModal ref={modalRef} snapPoints={['50%', '90%']} enablePanDownToClose> <BottomSheetView style={{ padding: 24 }}> <Text style={ink}>Modal content</Text> <Button title="Dismiss" onPress={() => modalRef.current?.dismiss()} /> </BottomSheetView> </BottomSheetModal> </View> ); }

Dynamic sizing

When snapPoints is not provided, the sheet sizes to fit its content by default. Use BottomSheetView for the sheet content wrapper.

DynamicBottomSheetExample.tsx
import { useRef } from 'react'; import { Button, Text, useColorScheme, View } from 'react-native'; import BottomSheet, { BottomSheetView } from '@expo/ui/community/bottom-sheet'; export default function DynamicBottomSheetExample() { const colorScheme = useColorScheme(); const ink = { color: colorScheme === 'dark' ? '#FFFFFF' : '#000000' }; const sheetRef = useRef<BottomSheet>(null); return ( <View style={{ flex: 1 }}> <Button title="Open" onPress={() => sheetRef.current?.present()} /> <BottomSheet ref={sheetRef} index={-1} enablePanDownToClose> <BottomSheetView style={{ padding: 24 }}> <Text style={ink}>This sheet sizes itself to its content.</Text> </BottomSheetView> </BottomSheet> </View> ); }

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.

BottomSheetScrollableExample.tsx
import { useRef } from 'react'; import { Button, FlatList, Text, useColorScheme, View } from 'react-native'; import BottomSheet from '@expo/ui/community/bottom-sheet'; const DATA = Array.from({ length: 50 }, (_, i) => `Item ${i + 1}`); export default function BottomSheetScrollableExample() { const colorScheme = useColorScheme(); const ink = { color: colorScheme === 'dark' ? '#FFFFFF' : '#000000' }; const sheetRef = useRef<BottomSheet>(null); return ( <View style={{ flex: 1 }}> <Button title="Open" onPress={() => sheetRef.current?.snapToIndex(0)} /> <BottomSheet ref={sheetRef} snapPoints={['50%', '90%']} index={-1} enablePanDownToClose> <FlatList nestedScrollEnabled style={{ flex: 1 }} data={DATA} keyExtractor={item => item} contentContainerStyle={{ padding: 24 }} renderItem={({ item }) => <Text style={{ ...ink, paddingVertical: 16 }}>{item}</Text>} /> </BottomSheet> </View> ); }

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.

FeatureAndroidiOSWeb
PresentationJetpack Compose modal bottom sheetSwiftUI sheetHTML <dialog> bottom sheet
Snap pointsMaps to partial and expanded statesSupports provided snap pointsSupports provided snap points
No snapPointsFits contentFits contentFits content
Pan down to closeAlso enables back button and scrim tap dismissAlso enables backdrop tap dismissEnables overlay tap, Escape, and pan-down dismiss
Persistent inline peekNot supportedNot supportedNot supported

Supported exports

ExportSupportedNotes
BottomSheetModal on Android and iOS, HTML dialog on web
BottomSheetModalStarts closed and opens with present()
BottomSheetModalProviderRenders children directly for compatibility
BottomSheetViewWraps sheet content
BottomSheetScrollViewRe-export of React Native ScrollView
BottomSheetFlatListRe-export of React Native FlatList
BottomSheetSectionListRe-export of React Native SectionList
BottomSheetTextInputRe-export of React Native TextInput
useBottomSheetReturns the sheet ref methods from context
BottomSheetBackdropThe native sheet or HTML dialog handles the backdrop
BottomSheetHandleThe native sheet or HTML dialog handles the drag indicator
BottomSheetFooterNo equivalent in this implementation

Compatibility notes

  • snapPoints, index, onChange, onClose, onDismiss, enablePanDownToClose, and enableDynamicSizing are supported.
  • handleComponent={null} hides the native or web drag indicator. Custom handle components are not rendered on native platforms.
  • backgroundStyle applies fully on web. On Android, backgroundColor is 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.
  • modifiers is an addition to the @gorhom/bottom-sheet API. It takes modifier configs from @expo/ui/swift-ui/modifiers or @expo/ui/jetpack-compose/modifiers and applies them to the native sheet's content on iOS and to the ModalBottomSheet on Android. It is ignored on web.
  • contentWindowInsets is an addition to the @gorhom/bottom-sheet API. 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

BottomSheet

Android
iOS
Web

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.

BottomSheetProps

animateOnMount

Android
iOS
Web
Optional • Type: boolean • Default: true

Whether to animate the sheet from closed to initial snap point on mount.

backdropComponent

Android
iOS
Web
Optional • Type: ComponentType<BottomSheetBackdropProps>

Custom backdrop component.

backgroundComponent

Android
iOS
Web
Optional • Literal type: union

Custom background component.

Acceptable values are: ComponentType<BottomSheetBackgroundProps> | null

backgroundStyle

Android
iOS
Web
Optional • Type: StyleProp<ViewStyle>

Style for the sheet background.

children

Android
iOS
Web
Type: ReactNode

The content to render inside the bottom sheet.

containerStyle

Android
iOS
Web
Optional • Type: StyleProp<ViewStyle>

Style for the outer container.

contentWindowInsets

Android
Optional • Type: BottomSheetContentWindowInsets

Insets 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.

enableContentPanningGesture

Android
iOS
Web
Optional • Type: boolean • Default: true

Whether to enable content panning gesture.

enableDynamicSizing

Android
iOS
Web
Optional • Type: boolean • Default: true

Whether the sheet should automatically size to fit its content.

enableHandlePanningGesture

Android
iOS
Web
Optional • Type: boolean • Default: true

Whether to enable handle panning gesture.

enableOverDrag

Android
iOS
Web
Optional • Type: boolean • Default: true

Whether to enable over-dragging the sheet.

enablePanDownToClose

Android
iOS
Web
Optional • Type: boolean • Default: false

Whether the sheet can be dismissed by panning down.

footerComponent

Android
iOS
Web
Optional • Type: ComponentType<BottomSheetFooterProps>

Custom footer component.

handleComponent

Android
iOS
Web
Optional • Literal type: union

Custom handle component. Pass null to hide the handle.

Acceptable values are: ComponentType<BottomSheetHandleProps> | null

handleIndicatorStyle

Android
iOS
Web
Optional • Type: StyleProp<ViewStyle>

Style for the handle indicator.

handleStyle

Android
iOS
Web
Optional • Type: StyleProp<ViewStyle>

Style for the handle area.

index

Android
iOS
Web
Optional • Type: number • Default: 0

Initial snap point index. Set to -1 to start closed.

keyboardBehavior

Android
iOS
Web
Optional • Literal type: string

Keyboard behavior when the sheet has a text input.

Acceptable values are: 'interactive' | 'extend' | 'fillParent'

keyboardBlurBehavior

Android
iOS
Web
Optional • Literal type: string

Behavior when the keyboard is dismissed.

Acceptable values are: 'none' | 'restore'

modifiers

Android
iOS
Web
Optional • Type: ModifierConfig[]

Platform-specific modifier escape hatch. Pass an array of modifier configs from @expo/ui/swift-ui/modifiers or @expo/ui/jetpack-compose/modifiers.

onChange

Android
iOS
Web
Optional • Type: (index: number) => void

Callback when the current snap point index changes.

onClose

Android
iOS
Web
Optional • Type: () => void

Callback when the bottom sheet is fully closed.

onDismiss

Android
iOS
Web
Optional • Type: () => void

Callback when the bottom sheet is dismissed. Compatible with @gorhom/bottom-sheet BottomSheetModal.onDismiss. Alias for onClose.

overDragResistanceFactor

Android
iOS
Web
Optional • Type: number • Default: 2.5

Resistance factor when over-dragging the sheet.

ref

Android
iOS
Web
Optional • Type: Ref<BottomSheetMethods>

Ref to the bottom sheet component. Exposes imperative methods (snapToIndex, expand, collapse, close, present, dismiss, etc.).

snapPoints

Android
iOS
Web
Optional • Type: (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]}

style

Android
iOS
Web
Optional • Type: StyleProp<ViewStyle>

Style applied to the bottom sheet container.

testID

Android
iOS
Web
Optional • Type: string

Identifier used to locate the inner content container in end-to-end tests. Applied on web only.

BottomSheetModal

Android
iOS
Web

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).

BottomSheetModalProvider

Android
iOS
Web

Type: React.Element<{ children: ReactNode }>

Provider for BottomSheetModal.

BottomSheetView

Android
iOS
Web

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.

BottomSheetViewProps

animateOnMount

Android
iOS
Web
Optional • Type: boolean • Default: true

Whether to animate the sheet from closed to initial snap point on mount.

backdropComponent

Android
iOS
Web
Optional • Type: ComponentType<BottomSheetBackdropProps>

Custom backdrop component.

backgroundComponent

Android
iOS
Web
Optional • Literal type: union

Custom background component.

Acceptable values are: ComponentType<BottomSheetBackgroundProps> | null

backgroundStyle

Android
iOS
Web
Optional • Type: StyleProp<ViewStyle>

Style for the sheet background.

children

Android
iOS
Web
Type: ReactNode

The content to render inside the bottom sheet.

containerStyle

Android
iOS
Web
Optional • Type: StyleProp<ViewStyle>

Style for the outer container.

contentWindowInsets

Android
Optional • Type: BottomSheetContentWindowInsets

Insets 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.

enableContentPanningGesture

Android
iOS
Web
Optional • Type: boolean • Default: true

Whether to enable content panning gesture.

enableDynamicSizing

Android
iOS
Web
Optional • Type: boolean • Default: true

Whether the sheet should automatically size to fit its content.

enableHandlePanningGesture

Android
iOS
Web
Optional • Type: boolean • Default: true

Whether to enable handle panning gesture.

enableOverDrag

Android
iOS
Web
Optional • Type: boolean • Default: true

Whether to enable over-dragging the sheet.

enablePanDownToClose

Android
iOS
Web
Optional • Type: boolean • Default: false

Whether the sheet can be dismissed by panning down.

footerComponent

Android
iOS
Web
Optional • Type: ComponentType<BottomSheetFooterProps>

Custom footer component.

handleComponent

Android
iOS
Web
Optional • Literal type: union

Custom handle component. Pass null to hide the handle.

Acceptable values are: ComponentType<BottomSheetHandleProps> | null

handleIndicatorStyle

Android
iOS
Web
Optional • Type: StyleProp<ViewStyle>

Style for the handle indicator.

handleStyle

Android
iOS
Web
Optional • Type: StyleProp<ViewStyle>

Style for the handle area.

index

Android
iOS
Web
Optional • Type: number • Default: 0

Initial snap point index. Set to -1 to start closed.

keyboardBehavior

Android
iOS
Web
Optional • Literal type: string

Keyboard behavior when the sheet has a text input.

Acceptable values are: 'interactive' | 'extend' | 'fillParent'

keyboardBlurBehavior

Android
iOS
Web
Optional • Literal type: string

Behavior when the keyboard is dismissed.

Acceptable values are: 'none' | 'restore'

modifiers

Android
iOS
Web
Optional • Type: ModifierConfig[]

Platform-specific modifier escape hatch. Pass an array of modifier configs from @expo/ui/swift-ui/modifiers or @expo/ui/jetpack-compose/modifiers.

onChange

Android
iOS
Web
Optional • Type: (index: number) => void

Callback when the current snap point index changes.

onClose

Android
iOS
Web
Optional • Type: () => void

Callback when the bottom sheet is fully closed.

onDismiss

Android
iOS
Web
Optional • Type: () => void

Callback when the bottom sheet is dismissed. Compatible with @gorhom/bottom-sheet BottomSheetModal.onDismiss. Alias for onClose.

overDragResistanceFactor

Android
iOS
Web
Optional • Type: number • Default: 2.5

Resistance factor when over-dragging the sheet.

ref

Android
iOS
Web
Optional • Type: Ref<BottomSheetMethods>

Ref to the bottom sheet component. Exposes imperative methods (snapToIndex, expand, collapse, close, present, dismiss, etc.).

snapPoints

Android
iOS
Web
Optional • Type: (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]}

style

Android
iOS
Web
Optional • Type: StyleProp<ViewStyle>

Style applied to the bottom sheet container.

testID

Android
iOS
Web
Optional • Type: string

Identifier used to locate the inner content container in end-to-end tests. Applied on web only.

children

Android
iOS
Web
Type: ReactNode

style

Android
iOS
Web
Optional • Type: StyleProp<ViewStyle>

Constants

BottomSheet.BottomSheetFlatList

Android
iOS
Web

Type: FlatList

A flat list for use inside a BottomSheet.

BottomSheet.BottomSheetScrollView

Android
iOS
Web

Type: ScrollView

A scrollable view for use inside a BottomSheet.

BottomSheet.BottomSheetSectionList

Android
iOS
Web

Type: SectionList

A section list for use inside a BottomSheet.

BottomSheet.BottomSheetTextInput

Android
iOS
Web

Type: TextInput

A text input for use inside a BottomSheet.

Hooks

useBottomSheet()

Android
iOS
Web

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.

Interfaces

BottomSheetBackdropProps

Android
iOS
Web

Props for custom backdrop components. Compatible with @gorhom/bottom-sheet BottomSheetBackdropProps.

PropertyTypeDescription
animatedIndex(optional){ value: number }
-
animatedPosition(optional){ value: number }
-
style(optional)StyleProp<ViewStyle>
-

BottomSheetBackgroundProps

Android
iOS
Web

Props for custom background components. Compatible with @gorhom/bottom-sheet BottomSheetBackgroundProps.

PropertyTypeDescription
animatedIndex(optional){ value: number }
-
animatedPosition(optional){ value: number }
-
pointerEvents(optional)'none' | 'auto' | 'box-none' | 'box-only'
-
style(optional)StyleProp<ViewStyle>
-

BottomSheetContentWindowInsets

Android
iOS
Web

Insets in dp for the sides of the bottom sheet content. Missing sides are 0.

PropertyTypeDescription
bottom(optional)number
-
end(optional)number
-
start(optional)number
-
top(optional)number
-

BottomSheetFooterProps

Android
iOS
Web

Props for custom footer components. Compatible with @gorhom/bottom-sheet BottomSheetFooterProps.

PropertyTypeDescription
animatedFooterPosition(optional){ value: number }
-

BottomSheetHandleProps

Android
iOS
Web

Props for custom handle components. Compatible with @gorhom/bottom-sheet BottomSheetHandleProps.

PropertyTypeDescription
animatedIndex(optional){ value: number }
-
animatedPosition(optional){ value: number }
-

BottomSheetMethods

Android
iOS
Web

Imperative methods exposed via ref on the BottomSheet component. Compatible with @gorhom/bottom-sheet BottomSheetMethods.

PropertyTypeDescription
close() => void

Close the bottom sheet.

collapse() => void

Snap to the minimum (lowest) snap point.

dismiss() => void

Dismiss the bottom sheet. Compatible with @gorhom/bottom-sheet BottomSheetModal.dismiss().

expand() => void

Snap to the maximum (highest) snap point.

forceClose() => void

Force close the bottom sheet, preventing gesture interruptions.

present() => void

Present the bottom sheet (open at the first snap point). Compatible with @gorhom/bottom-sheet BottomSheetModal.present().

snapToIndex(index: number) => void

Snap to a snap point by index.

snapToPosition(position: string | number) => void

Snap to an arbitrary position.

Types

BottomSheet

Android
iOS
Web

Type: BottomSheetMethods

Bottom sheet component. Defaults to index={0} (open at first snap point on mount).

BottomSheetModal

Android
iOS
Web

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).

Reference version