native-base
Version:
Essential cross-platform UI components for React Native
16 lines (14 loc) • 534 B
text/typescript
import React, { RefObject } from 'react';
export const PopoverContext = React.createContext({
onClose: () => {},
initialFocusRef: { current: null } as RefObject<any> | undefined,
finalFocusRef: { current: null } as RefObject<any> | undefined,
popoverContentId: undefined as string | undefined,
headerId: undefined as string | undefined,
bodyId: undefined as string | undefined,
setHeaderMounted: (() => {}) as any,
setBodyMounted: (() => {}) as any,
headerMounted: false,
bodyMounted: false,
isOpen: false,
});