r/reactnative • u/Remarkable-Stage144 • 12d ago
FYI I recreated Telegram's Dynamic Island avatar animation in React Native (Skia + Reanimated)
The first time I saw this animation in Telegram, it felt like magic.
I wondered, "How did they build that?" especially the transition where the avatar smoothly merges into the Dynamic Island.
I wanted to understand how it works, so here is my recreation.
A few implementation details:
- Skia renders the avatar using Telegram's original Lottie mask
- Reanimated handles scroll-driven animations to keep everything smooth
- On Android, the avatar smoothly merges into the top of the screen
- On iPhones without Dynamic Island, the animation is simplified
Would love to hear your thoughts! I really like these little UI details that make an app feel more alive.
Source code: https://github.com/BohdanShh/telegram-profile-animation
126
Upvotes
2
u/vqt907 12d ago
ow, I didn't know about this, they even made it work on an Android punch-hole screen :)
2
u/cookiedev23 7d ago
How do you get the native blur effect on the header ? Not the hard one which is the default, but the one you are using
5
u/anatooly2 12d ago
Thx Bohdan
1
u/Wicked-Tired-Otter 11d ago
This is incredibly smooth! The way the avatar merges into the Dynamic Island is such a nice touch.
Curious how you handled the transition between the Skia mask and the native UI. Did you run into any performance issues on Android?
3
u/LovesWorkin 12d ago
Very cool!
2
u/Reaction_Physical 10d ago
the avatar melting into the dynamic island looks so smooth. good work figuring that out with skia.
2
u/Federal_Lawyer3540 9d ago
C'est toujours important de gérer les petits détails dans une application
1
u/AlwaysDeath 11d ago
Well done