@gluestack-ui/actionsheet
Version:
A universal headless actionsheet component for React Native, Next.js & React
17 lines (16 loc) • 455 B
JavaScript
import React from 'react';
export const ActionsheetContext = React.createContext({
hideDragIndicator: false,
handleClose: (() => { }),
initialFocusRef: { current: null },
finalFocusRef: { current: null },
visible: false,
backdropVisible: false,
closeOnOverlayClick: false,
handleCloseBackdrop: (() => { }),
avoidKeyboard: false,
bottomInset: 0,
trapFocus: true,
snapPoints: [],
preventScroll: true,
});