Sliding Counter Animation in React Native (Reanimated 2)

Опубликовано: 06 Апрель 2026
на канале: Reactiive
13,984
258

In this tutorial, we’ll learn how to create a Sliding Counter Animation in React Native.
We'll use these packages:
react-native-reanimated
react-native-gesture-handler

My React Native animations course: https://reanimate.dev
Shared 100+ Animations on Demos: https://reactiive.io/demos
Twitter:   / reactiive_  

Source code: https://github.com/enzomanuelmangano/...

Dribbble Animation: https://dribbble.com/shots/16434514-T...

Clamp, SharedValue, Worklets ?! 🤕
Here's the introduction to Reanimated    • Introduction to React Native Reanimated 2  

How to deal with the interpolate function?
1. Interpolate like a pro:    • Interpolate with ScrollView like a pro (Re...  
2. Interpolate colors:    • Interpolate Colors like a pro with React N...  

How to deal with the useAnimatedGestureHandler hook?
Check this video:    • The basics of PanGestureHandler with React...  

Here you can find the Expo Vector Icons: https://icons.expo.fyi/

Chapters:
00:00 Introduction
00:50 Setup
05:40 Translate everywhere
11:15 Clamping the translations
14:42 The opacity animations
19:15 Translate Y
25:23 Let's build the counter behavior
33:13 The button container animation