From 849e9f45ea4cdf3215477bc938d33f4c8f773b65 Mon Sep 17 00:00:00 2001 From: Mo Gorhom Date: Thu, 4 Mar 2021 16:02:40 +0000 Subject: [PATCH] chore: export bottom sheet props type --- src/contexts/index.ts | 2 +- src/index.ts | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/contexts/index.ts b/src/contexts/index.ts index a8d5b672f..e03878fbc 100644 --- a/src/contexts/index.ts +++ b/src/contexts/index.ts @@ -10,5 +10,5 @@ export { export { BottomSheetModalInternalContext, BottomSheetModalInternalProvider, - BottomSheetModalInternalContextType, } from './modal/internal'; +export type { BottomSheetModalInternalContextType } from './modal/internal'; diff --git a/src/index.ts b/src/index.ts index 9fed99ae6..6ea435664 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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'; @@ -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';