Add prettier

This commit is contained in:
2025-01-28 08:45:02 -06:00
parent db606f2e2a
commit 5a821fc6b5
16 changed files with 115 additions and 81 deletions

View File

@ -16,16 +16,17 @@ export function Collapsible({ children, title }: PropsWithChildren & { title: st
<TouchableOpacity
style={styles.heading}
onPress={() => setIsOpen((value) => !value)}
activeOpacity={0.8}>
activeOpacity={0.8}
>
<IconSymbol
name="chevron.right"
name='chevron.right'
size={18}
weight="medium"
weight='medium'
color={theme === 'light' ? Colors.light.icon : Colors.dark.icon}
style={{ transform: [{ rotate: isOpen ? '90deg' : '0deg' }] }}
/>
<ThemedText type="defaultSemiBold">{title}</ThemedText>
<ThemedText type='defaultSemiBold'>{title}</ThemedText>
</TouchableOpacity>
{isOpen && <ThemedView style={styles.content}>{children}</ThemedView>}
</ThemedView>

View File

@ -8,7 +8,7 @@ type Props = Omit<ComponentProps<typeof Link>, 'href'> & { href: string };
export function ExternalLink({ href, ...rest }: Props) {
return (
<Link
target="_blank"
target='_blank'
{...rest}
href={href}
onPress={async (event) => {

View File

@ -16,7 +16,7 @@ export function HelloWave() {
useEffect(() => {
rotationAnimation.value = withRepeat(
withSequence(withTiming(25, { duration: 150 }), withTiming(0, { duration: 150 })),
4 // Run the animation 4 times
4, // Run the animation 4 times
);
}, []);

View File

@ -34,7 +34,7 @@ export default function ParallaxScrollView({
translateY: interpolate(
scrollOffset.value,
[-HEADER_HEIGHT, 0, HEADER_HEIGHT],
[-HEADER_HEIGHT / 2, 0, HEADER_HEIGHT * 0.75]
[-HEADER_HEIGHT / 2, 0, HEADER_HEIGHT * 0.75],
),
},
{
@ -50,13 +50,15 @@ export default function ParallaxScrollView({
ref={scrollRef}
scrollEventThrottle={16}
scrollIndicatorInsets={{ bottom }}
contentContainerStyle={{ paddingBottom: bottom }}>
contentContainerStyle={{ paddingBottom: bottom }}
>
<Animated.View
style={[
styles.header,
{ backgroundColor: headerBackgroundColor[colorScheme] },
headerAnimatedStyle,
]}>
]}
>
{headerImage}
</Animated.View>
<ThemedView style={styles.content}>{children}</ThemedView>

View File

@ -18,7 +18,7 @@ export function IconSymbol({
<SymbolView
weight={weight}
tintColor={color}
resizeMode="scaleAspectFit"
resizeMode='scaleAspectFit'
name={name}
style={[
{

View File

@ -8,7 +8,7 @@ export default function BlurTabBarBackground() {
<BlurView
// System chrome material automatically adapts to the system's theme
// and matches the native tab bar appearance on iOS.
tint="systemChromeMaterial"
tint='systemChromeMaterial'
intensity={100}
style={StyleSheet.absoluteFill}
/>