Skip to content

Commit

Permalink
Merge pull request #9 from roninoss/@zach/standardize-exports
Browse files Browse the repository at this point in the history
chore: standardize exports
  • Loading branch information
mrzachnugent authored Jul 4, 2024
2 parents 2b5b065 + a39030b commit 9d408c3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions components/nativewindui/ActivityIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { ActivityIndicator as RNActivityIndicator } from 'react-native';

import { useColorScheme } from '~/lib/useColorScheme';

export function ActivityIndicator(
props: React.ComponentPropsWithoutRef<typeof RNActivityIndicator>
) {
function ActivityIndicator(props: React.ComponentPropsWithoutRef<typeof RNActivityIndicator>) {
const { colors } = useColorScheme();
return <RNActivityIndicator color={colors.primary} {...props} />;
}

export { ActivityIndicator };
4 changes: 3 additions & 1 deletion components/nativewindui/SegmentedControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Platform } from 'react-native';

import { useColorScheme } from '~/lib/useColorScheme';

export function SegmentedControl(props: React.ComponentPropsWithoutRef<typeof RNSegmentedControl>) {
function SegmentedControl(props: React.ComponentPropsWithoutRef<typeof RNSegmentedControl>) {
const { colorScheme, colors } = useColorScheme();
return (
<RNSegmentedControl
Expand All @@ -18,3 +18,5 @@ export function SegmentedControl(props: React.ComponentPropsWithoutRef<typeof RN
/>
);
}

export { SegmentedControl };
4 changes: 3 additions & 1 deletion components/nativewindui/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -22,3 +22,5 @@ export function Slider({
/>
);
}

export { Slider };
4 changes: 3 additions & 1 deletion components/nativewindui/Toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof Switch>) {
function Toggle(props: React.ComponentPropsWithoutRef<typeof Switch>) {
const { colors } = useColorScheme();
return (
<Switch
Expand All @@ -16,3 +16,5 @@ export function Toggle(props: React.ComponentPropsWithoutRef<typeof Switch>) {
/>
);
}

export { Toggle };

0 comments on commit 9d408c3

Please sign in to comment.