Skip to main content

Command Palette

Search for a command to run...

React Native Progress Bar

using reanimated2

Published
•1 min read•View as Markdown
React Native Progress Bar
G
I'm a Senior Software developer who loves solving real-world problems and building meaningful products 💡 I currently focus on crafting clean, user-friendly experiences using React Native ⚛️ I enjoy working on challenging projects and constantly learning new things — whether it’s exploring a new framework or diving deeper into existing ones. This space is where I share my journey, the issues I tackle, and the lessons I pick up along the way 🚀

In this blog, we will create a progress bar using react native reanimated2.

ezgif.com-gif-maker (2).gif

In progress.tsx file we need to import reanimated 2 properties.

carbon (4).png

carbon (6).png

Define the value in useSharedValue for the progress bar and we have to maintain the index and width for keeping track of the progress bar.

carbon (5).png

Based on the index and width we have to manipulate the value for the progress bar.

carbon (7).png

carbon (8).png

Whole code:

carbon (9).png

From the parents component, we have to pass value in the progress bar component

carbon (10).png

GitHub repo: https://github.com/partTimeCoder96/animation-expo-reanimated/blob/main/Src/progressBar/index.tsx

More from this blog

Govind Maheshwari's blog

12 posts