()
| 11 | import { ThemedText } from '@/components/ThemedText'; |
| 12 | |
| 13 | export function HelloWave() { |
| 14 | const rotationAnimation = useSharedValue(0); |
| 15 | |
| 16 | useEffect(() => { |
| 17 | rotationAnimation.value = withRepeat( |
| 18 | withSequence(withTiming(25, { duration: 150 }), withTiming(0, { duration: 150 })), |
| 19 | 4 // Run the animation 4 times |
| 20 | ); |
| 21 | }, []); |
| 22 | |
| 23 | const animatedStyle = useAnimatedStyle(() => ({ |
| 24 | transform: [{ rotate: `${rotationAnimation.value}deg` }], |
| 25 | })); |
| 26 | |
| 27 | return ( |
| 28 | <Animated.View style={animatedStyle}> |
| 29 | <ThemedText style={styles.text}>👋</ThemedText> |
| 30 | </Animated.View> |
| 31 | ); |
| 32 | } |
| 33 | |
| 34 | const styles = StyleSheet.create({ |
| 35 | text: { |
nothing calls this directly
no outgoing calls
no test coverage detected