filmov
tv
🎛 Custom Animated Switch component in React Native - Moti & Reanimated2
Показать описание
🔥 In this video tutorial we will create a custom Switch animation using Moti library that's powered by React Native Reanimated2, having all the interactions running at 60fps on UI Thread.
We'll go through:
- How to create a custom switch animation in React Native
- How to use Moti in React Native
----
----
Want to support me?
----
You can find me on:
---
Timeline:
- 00:00 Intro
- 01:00 What we're going to build
- 02:00 Start coding - VSCode project
- 03:05 Create reusable Switch component
- 04:55 UI component structure
- 06:10 Style the switch track view
- 08:45 Style the knob
- 10:00 Style the knob switch indicator
- 12:55 Jump into React Native Moti
- 14:15 Animate background-color of the switch track view
- 15:40 Animate knob container
- 17:45 Animate the knob switch indicator - Circle to Rectangle
- 19:00 the magic of 60fps animations
- 20:58 Performance review of the animation
- 21:26 Final words!
#reactnative #moti #reanimated2
We'll go through:
- How to create a custom switch animation in React Native
- How to use Moti in React Native
----
----
Want to support me?
----
You can find me on:
---
Timeline:
- 00:00 Intro
- 01:00 What we're going to build
- 02:00 Start coding - VSCode project
- 03:05 Create reusable Switch component
- 04:55 UI component structure
- 06:10 Style the switch track view
- 08:45 Style the knob
- 10:00 Style the knob switch indicator
- 12:55 Jump into React Native Moti
- 14:15 Animate background-color of the switch track view
- 15:40 Animate knob container
- 17:45 Animate the knob switch indicator - Circle to Rectangle
- 19:00 the magic of 60fps animations
- 20:58 Performance review of the animation
- 21:26 Final words!
#reactnative #moti #reanimated2
Комментарии