Skip to content

Commit

Permalink
chore(client): fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocroh committed Feb 2, 2025
1 parent 7911e15 commit 69cea54
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 63 deletions.
2 changes: 1 addition & 1 deletion apps/client/app/(tabs)/explore.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Image, Platform, StyleSheet, Text } from 'react-native'
import { Image, Platform, StyleSheet } from 'react-native'
import { Collapsible } from '@/components/Collapsible'
import { ExternalLink } from '@/components/ExternalLink'
import ParallaxScrollView from '@/components/ParallaxScrollView'
Expand Down
30 changes: 16 additions & 14 deletions apps/client/components/HelloWave.tsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
import { useEffect } from 'react';
import { StyleSheet } from 'react-native';
import { useEffect } from 'react'
import { StyleSheet } from 'react-native'
import Animated, {
useSharedValue,
useAnimatedStyle,
withTiming,
useSharedValue,
withRepeat,
withSequence,
} from 'react-native-reanimated';

import { ThemedText } from '@/components/ThemedText';
withTiming,
} from 'react-native-reanimated'
import { ThemedText } from '@/components/ThemedText'

export function HelloWave() {
const rotationAnimation = useSharedValue(0);
const rotationAnimation = useSharedValue(0)

useEffect(() => {
rotationAnimation.value = withRepeat(
withSequence(withTiming(25, { duration: 150 }), withTiming(0, { duration: 150 })),
withSequence(
withTiming(25, { duration: 150 }),
withTiming(0, { duration: 150 })
),
4 // Run the animation 4 times
);
}, []);
)
}, [rotationAnimation])

const animatedStyle = useAnimatedStyle(() => ({
transform: [{ rotate: `${rotationAnimation.value}deg` }],
}));
}))

return (
<Animated.View style={animatedStyle}>
<ThemedText style={styles.text}>👋</ThemedText>
</Animated.View>
);
)
}

const styles = StyleSheet.create({
Expand All @@ -37,4 +39,4 @@ const styles = StyleSheet.create({
lineHeight: 32,
marginTop: -6,
},
});
})
70 changes: 22 additions & 48 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 69cea54

Please sign in to comment.