Skip to content
Discussion options

You must be logged in to vote

You can animate Lucide icons in React Native by wrapping them with createAnimatedComponent from react-native-reanimated. Here's a simple example:

import React, { useEffect } from 'react';
import { View } from 'react-native';
import { Heart } from 'lucide-react-native';
import Animated, {
  useSharedValue,
  useAnimatedStyle,
  withTiming,
  Easing,
  createAnimatedComponent,
} from 'react-native-reanimated';

const AnimatedHeart = createAnimatedComponent(Heart);

export default function AnimatedIcon() {
  const rotation = useSharedValue(0);

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

  useEffect(() => {
    rotation.value = 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RainPlays09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants