From 1c5b08cafc10c2460afd181e345c2b12a2fde80b Mon Sep 17 00:00:00 2001 From: Narin Ratana Date: Fri, 15 Nov 2024 09:32:20 -0800 Subject: [PATCH] Reorganize exports --- packages/components/src/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/components/src/index.tsx b/packages/components/src/index.tsx index 07bd6ee4..34e20175 100644 --- a/packages/components/src/index.tsx +++ b/packages/components/src/index.tsx @@ -6,6 +6,10 @@ if (expoApp && App.initiateExpo) { App.initiateExpo(expoApp) } +// Export consumer available utilities here so they are exported through npm +export { useIsScreenReaderEnabled, useTheme } from './utils' +export { useSnackbar } from './components/Snackbar/useSnackbar' + // Export components here so they are exported through npm export { Alert } from './components/Alert/Alert' export { Button, ButtonVariants } from './components/Button/Button' @@ -33,7 +37,3 @@ export type { LoadingIndicatorProps } from './components/LoadingIndicator/Loadin export type { SegmentedControlProps } from './components/SegmentedControl/SegmentedControl' export type { SpacerProps } from './components/Spacer/Spacer' export type { TextProps } from './components/Text/Text' - -// Export consumer available utilities here so they are exported through npm -export { useIsScreenReaderEnabled, useTheme } from './utils' -export { useSnackbar } from './components/Snackbar/useSnackbar'