Skip to content

Commit

Permalink
chore: export bottom sheet props type
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Mar 4, 2021
1 parent 36a76f6 commit 849e9f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/contexts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export {
export {
BottomSheetModalInternalContext,
BottomSheetModalInternalProvider,
BottomSheetModalInternalContextType,
} from './modal/internal';
export type { BottomSheetModalInternalContextType } from './modal/internal';
12 changes: 7 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ export const {
TouchableWithoutFeedback,
} = BottomSheetTouchable;

// default components / types
export type { BottomSheetHandleProps } from './components/bottomSheetHandle';
export type { BottomSheetBackgroundProps } from './components/bottomSheetBackground';
export type { BottomSheetBackdropProps } from './components/bottomSheetBackdrop';

// backdrop
export { default as BottomSheetBackdrop } from './components/bottomSheetBackdrop';

Expand All @@ -32,3 +27,10 @@ export { useBottomSheet } from './hooks/useBottomSheet';
export { useBottomSheetModal } from './hooks/useBottomSheetModal';
export { useBottomSheetSpringConfigs } from './hooks/useBottomSheetSpringConfigs';
export { useBottomSheetTimingConfigs } from './hooks/useBottomSheetTimingConfigs';

// components types
export type { BottomSheetProps } from './components/bottomSheet';
export type { BottomSheetModalProps } from './components/bottomSheetModal';
export type { BottomSheetHandleProps } from './components/bottomSheetHandle';
export type { BottomSheetBackgroundProps } from './components/bottomSheetBackground';
export type { BottomSheetBackdropProps } from './components/bottomSheetBackdrop';

0 comments on commit 849e9f4

Please sign in to comment.