Skip to main content

BottomSheet

BottomSheets are sheets that slide up from the bottom of the screen. You can put any content you want inside.

Import

import { BottomSheet } from '@nomada-sh/react-native-eyecandy';

Example

Props

Required
height

Height of the bottom sheet.

Type
number

handleHeight

Height of the bottom sheet handle.

TypeDefault
number40

visible

If true, the bottom sheet is visible.

TypeDefault
booleanfalse

onClose

() => void;

Callback function to be called when the bottom sheet is closed.

Type
function

contentStyle

These styles will be applied to the bottom sheet content view.

Type
View Style

handleStyle

These styles will be applied to the bottom sheet handle view.

Type
View Style

disableAnimations

Disable opening and closing animations, useful for testing.

TypeDefault
booleanfalse

testID

Used to locate bottom sheet views in end-to-end tests.

Type
string