React Native Animated Tabs & Animated Indicator using FlatList

Catalin Miron November 3, 2020
Video Thumbnail
Catalin Miron Logo

Catalin Miron

View Channel

About

The creator of AnimateReactNative.com, a collection of Premium and custom React Native animations, that's going to save your time, make your app shine and increase User Experience (UX). Previously I was Senior Engineer working at ElevenLabs, Microsoft, Skype and Hootsuite I'm building React Native tutorials, React Native animations using React Native Animated API, FlatList, React Native Animatable and React Native Reanimated. --- If you'd like to have access to all my video source code, you need to become a Patreon. I'm posting a new source code every week. 👉 Access Premium and Custom React Native animations https://www.AnimateReactNative.com --- I have also created a Discord server where we can chat or help you with any issues that you might have. 👉Join my Discord server: https://discord.gg/vg7hUDU

Video Description

🔥 Create a React Native Animated Tabs indicator / Dynamic Tabs indicator that will dynamically change its width and position based on React Native FlatList scrollX. In this video tutorial we'll learn how to create: - learn how to create an animated tabs using React Native FlatList - learn how to animate a tabs indicator - learn how to create an animated tabs indicator using Animated API - learn how to measureLayout and use React Native findNodeHandle Built using @expo, vanilla React Native Animated API and FlatList. This code works in plain React Native project as well since we are using only React Native APIs such as Animated and FlatList in order to create a React Native Animated Tabs and Animated tabs indicator that will scale and position according to the active slide from the FlatList. ---- ⚠️ Access full source code: https://www.patreon.com/bePatron?u=20582060 ---- Starter code: https://gist.github.com/catalinmiron/31fec63eecf0af2e45a01cca15205cae 👉👉 Have any questions? Join Discord: https://discord.gg/vg7hUDU. Want to support me? - Patreon: https://patreon.com/catalinmiron - BuyMeACoffee: https://www.buymeacoffee.com/catalinmiron - Paypal: https://paypal.me/catalinmiron ---- You can find me on: - Github: http://github.com/catalinmiron - Twitter: http://twitter.com/mironcatalin - Website: http://batman.codes Timeline: 00:00 Introduction + What we’re going to build 00:56 Boilerplate + starter code link 02:19 Create the Animated FlatList 05:15 Create Animated.Value ref for FlatList 06:20 Create Tabs component 07:10 Create Tab component 09:30 Create Tabs Indicator component 10:30 Get the Tabs measurements using measureLayout and findNodeHandle 12:40 How React Native ref measureLayout works 16:50 Animated Indicator width and x based on FlatList scrollX position 20:10 Last part, press on tab to modify FlatList scrollOffset 23:14 Final words and thanks #react-native-tabs #react-native-flatlist #react-native-tabs-animation #react-native-dynamic-underline-animation #react-native-animated-tabs-indicator

Essential Camera Gear

AI-recommended products based on this video

Loading...
COOWPS Switch Case for Nintendo Switch and Switch OLED Model, Portable Full Protection Carrying Travel Bag with 18 Game Cards Storage for Switch Console Pro Controller Accessories Black

COOWPS Switch Case for Nintendo Switch and Switch OLED Model, Portable Full Protection Carrying Travel Bag with 18 Game Cards Storage for Switch Console Pro Controller Accessories Black

(2,497)
$24.99$22.99
FREE delivery Mon, Jun 16 on $35 of items shipped by Amazon
800+ bought in past month
Loading...
UGREEN Revodok Pro 210 Docking Station 10 in 1 USB C Dock Dual HDMI 4K@60Hz Single 8K@30Hz 100W PD 5Gbps USB C and USB A Data Ports Gigabit Ethernet, SD/TF Card Reader USB Hub Compatible for HP, Dell

UGREEN Revodok Pro 210 Docking Station 10 in 1 USB C Dock Dual HDMI 4K@60Hz Single 8K@30Hz 100W PD 5Gbps USB C and USB A Data Ports Gigabit Ethernet, SD/TF Card Reader USB Hub Compatible for HP, Dell

(1,701)
39.99
PrimeFREE delivery Saturday, June 14
100+ bought in past month
Loading...
ANKER 737 Power Bank, 24,000mAh 3-Port Laptop Portable Charger with 140W Fast Charging, Smart Display, for Outdoor Work, Compatible with iPhone 16/15/14 Series, Vision Pro, Samsung, MacBook, and More

ANKER 737 Power Bank, 24,000mAh 3-Port Laptop Portable Charger with 140W Fast Charging, Smart Display, for Outdoor Work, Compatible with iPhone 16/15/14 Series, Vision Pro, Samsung, MacBook, and More

(13,939)
109.99
FREE delivery Saturday, June 14
9K+ bought in past month
Loading...
Anker iPhone 16 Charger, 2-Pack 20W Fast USB C Charger Block, for iPhone 16/16 Pro Max/15 Series/iPad Pro and More (White, 2 Pack & 2 Cable)

Anker iPhone 16 Charger, 2-Pack 20W Fast USB C Charger Block, for iPhone 16/16 Pro Max/15 Series/iPad Pro and More (White, 2 Pack & 2 Cable)

(16,565)
13.99
PrimeFREE delivery Saturday, June 14 on orders shipped by Amazon over $35
10K+ bought in past month
Loading...
Anker Power Bank(PowerCore 10K),Compact Travel-Ready 10,000mAh Battery Pack with PowerIQ Charging Technology,5V/3A High-Speed Charging for iPhone,iPad,and More (USB-C Input and Output(Black),1pack) ClimatePartner certified

Anker Power Bank(PowerCore 10K),Compact Travel-Ready 10,000mAh Battery Pack with PowerIQ Charging Technology,5V/3A High-Speed Charging for iPhone,iPad,and More (USB-C Input and Output(Black),1pack) ClimatePartner certified

(109,961)
$17.99$17.81
FREE delivery Fri, Aug 8 on $35 of items shipped by Amazon
10K+ bought in past month
Loading...
DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

(1,978)
299.00
FREE delivery June 12 - 17. Details
4K+ bought in past month