Erne animate

From JubaKitiashvili/everything-react-native-expo · View interactive version

Erne animate is an AI agent skill from the GitHub repository JubaKitiashvili/everything-react-native-expo. ERNE — Implement animations using the ui-designer agent with Reanimated and Gesture Handler

How to use this skill

Skill file

/erne-animate — Implement Animations

You are executing the /erne-animate command. Use the ui-designer agent to implement animations.

Process

  1. Understand the animation goal — What should animate? Transition, gesture, layout change, micro-interaction?
  2. Choose the right tool:
  1. Implement with worklets — Keep animation logic on the UI thread:
import Animated, {
  useSharedValue,
  useAnimatedStyle,
  withSpring,
  withTiming,
} from 'react-native-reanimated';

const offset = useSharedValue(0);

const animatedStyle = useAnimatedStyle(() => ({
  transform: [{ translateX: withSpring(offset.value) }],
}));
  1. Add gesture interaction (if applicable):
import { Gesture, GestureDetector } from 'react-native-gesture-handler';

const pan = Gesture.Pan()
  .onUpdate((e) => {
    offset.value = e.translationX;
  })
  .onEnd(() => {
    offset.value = withSpring(0);
  });
  1. Verify performance:

Animation Patterns Reference

| Pattern | Tool | Example |

|---------|------|---------|

| Fade in/out | withTiming + opacity | Screen transitions |

| Spring bounce | withSpring | Button press feedback |

| Gesture drag | Gesture.Pan + useAnimatedStyle | Swipeable cards |

| Shared element | expo-router layout animations | Photo gallery to detail |

| Staggered list | entering/exiting props | List item appearance |

| Scroll-linked | useAnimatedScrollHandler | Parallax, collapsing headers |

Output

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.