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 };