From a39030b22191e10cdc2058601d81816f1f1b6f2d Mon Sep 17 00:00:00 2001 From: Zach Nugent Date: Thu, 4 Jul 2024 16:14:56 -0400 Subject: [PATCH] chore: standardize exports --- components/nativewindui/ActivityIndicator.tsx | 6 +++--- components/nativewindui/SegmentedControl.tsx | 4 +++- components/nativewindui/Slider.tsx | 4 +++- components/nativewindui/Toggle.tsx | 4 +++- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/components/nativewindui/ActivityIndicator.tsx b/components/nativewindui/ActivityIndicator.tsx index c0361ed..2fbda73 100644 --- a/components/nativewindui/ActivityIndicator.tsx +++ b/components/nativewindui/ActivityIndicator.tsx @@ -2,9 +2,9 @@ import { ActivityIndicator as RNActivityIndicator } from 'react-native'; import { useColorScheme } from '~/lib/useColorScheme'; -export function ActivityIndicator( - props: React.ComponentPropsWithoutRef -) { +function ActivityIndicator(props: React.ComponentPropsWithoutRef) { const { colors } = useColorScheme(); return ; } + +export { ActivityIndicator }; diff --git a/components/nativewindui/SegmentedControl.tsx b/components/nativewindui/SegmentedControl.tsx index cb11432..2375ca9 100644 --- a/components/nativewindui/SegmentedControl.tsx +++ b/components/nativewindui/SegmentedControl.tsx @@ -3,7 +3,7 @@ import { Platform } from 'react-native'; import { useColorScheme } from '~/lib/useColorScheme'; -export function SegmentedControl(props: React.ComponentPropsWithoutRef) { +function SegmentedControl(props: React.ComponentPropsWithoutRef) { const { colorScheme, colors } = useColorScheme(); return ( ); } + +export { SegmentedControl }; diff --git a/components/nativewindui/Slider.tsx b/components/nativewindui/Slider.tsx index a0e73f1..dcc4a2e 100644 --- a/components/nativewindui/Slider.tsx +++ b/components/nativewindui/Slider.tsx @@ -4,7 +4,7 @@ import { Platform } from 'react-native'; import { useColorScheme } from '~/lib/useColorScheme'; import { COLORS } from '~/theme/colors'; -export function Slider({ +function Slider({ thumbTintColor, minimumTrackTintColor, maximumTrackTintColor, @@ -22,3 +22,5 @@ export function Slider({ /> ); } + +export { Slider }; diff --git a/components/nativewindui/Toggle.tsx b/components/nativewindui/Toggle.tsx index d57bd4c..eaa0c71 100644 --- a/components/nativewindui/Toggle.tsx +++ b/components/nativewindui/Toggle.tsx @@ -3,7 +3,7 @@ import { Switch } from 'react-native'; import { useColorScheme } from '~/lib/useColorScheme'; import { COLORS } from '~/theme/colors'; -export function Toggle(props: React.ComponentPropsWithoutRef) { +function Toggle(props: React.ComponentPropsWithoutRef) { const { colors } = useColorScheme(); return ( ) { /> ); } + +export { Toggle };