<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/building-a-custom-curved-bottom-tab-bar-with-svg-path-in-react-native-web-bnyob7m0e" -->

---
title: Building a Custom Curved Bottom Tab Bar with SVG Path in...
description: Discussion about "Building a Custom Curved Bottom Tab Bar with SVG Path in React Native & Web" on daily.dev - join the developer community
canonical: https://daily.dev/posts/building-a-custom-curved-bottom-tab-bar-with-svg-path-in-react-native-web-bnyob7m0e
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Building a Custom Curved Bottom Tab Bar with SVG Path in React Native & Web | daily.dev
og:description: Discussion about "Building a Custom Curved Bottom Tab Bar with SVG Path in React Native & Web" on daily.dev - join the developer community
og:url: https://daily.dev/posts/building-a-custom-curved-bottom-tab-bar-with-svg-path-in-react-native-web-bnyob7m0e
og:image: https://api.daily.dev/og/posts/bnYob7M0E.png
og:image:alt: Building a Custom Curved Bottom Tab Bar with SVG Path in React Native & Web
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Building a Custom Curved Bottom Tab Bar with SVG Path in React Native & Web

**[Hòa Nguyễn Coder](https://daily.dev/sources/hv0uge9ii7tykz7udso6n)** · [@hoanguyencoder](https://daily.dev/hoanguyencoder) · 0 upvotes · 0 comments

## Content

SVG Tab Bottom , we can add it in React Native , but install library svg

5 TAB : width  = 500px

1 TAB : width = 100px

tabWidth = width / 5: Chia thanh tab thành 5 phần bằng nhau (tương ứng với 5 icon).

center = width / 2: Tọa độ X tại điểm chính giữa màn hình.

notchRadius = tabWidth / 2: Bán kính của vùng lõm.

notchDepth = 40: Độ sâu của vết lõm xuống phía dưới.

---------------
```
M0 0
H${center - notchRadius - 25} => 250 - 50 - 25 = H175
C${center - notchRadius + 10} 0 => 250 - 50 + 10 =  C210 0
${center - notchRadius + 10} ${notchDepth} => 250 - 50 + 10 = 210 40
${center} ${notchDepth} => 250 40
C${center + notchRadius - 10} ${notchDepth} = > 250 + 50 - 10 = C290 40
${center + notchRadius - 10} 0 = > 250 +  50 - 10 =  290 0
${center + notchRadius + 25} 0 = 325 0
H${width}
V80
H0
Z
```
Code SVG
```
<svg width="500" height="500" viewbox='0 0 500 500'>
  <path d="M0 0 H175 C210 0 210 40 250 40 C290 40 290 0 325 0 H500 V60 H0 Z" stroke="white" fill="#fff"/>
</svg>
```
We can add in React Native
```javascript
 <Svg
              width={width}
              height={80}
              viewBox={`0 0 ${width} 80`}
              preserveAspectRatio="none"
            >
              <Path
                d={`
                M0 0
                H${center - notchRadius - 25}

                C${center - notchRadius + 10} 0
                ${center - notchRadius + 10} ${notchDepth}
                ${center} ${notchDepth}

                C${center + notchRadius - 10} ${notchDepth}
                ${center + notchRadius - 10} 0
                ${center + notchRadius + 25} 0

                H${width}
                V80
                H0
                Z
              `}
                fill="#fff"
              />
```
But we can install library "react-native-svg"

---

[View this post on daily.dev](https://daily.dev/posts/building-a-custom-curved-bottom-tab-bar-with-svg-path-in-react-native-web-bnyob7m0e)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/building-a-custom-curved-bottom-tab-bar-with-svg-path-in-react-native-web-bnyob7m0e","headline":"Building a Custom Curved Bottom Tab Bar with SVG Path in React Native & Web","text":"Discussion about \"Building a Custom Curved Bottom Tab Bar with SVG Path in React Native & Web\" on daily.dev - join the developer community","url":"https://daily.dev/posts/building-a-custom-curved-bottom-tab-bar-with-svg-path-in-react-native-web-bnyob7m0e","datePublished":"2026-01-28T02:54:39.245Z","dateModified":"2026-01-28T02:59:51.756Z","author":{"@type":"Person","name":"Hòa Nguyễn Coder","url":"https://daily.dev/hoanguyencoder","image":"https://media.daily.dev/image/upload/s--SCsZnAEj--/f_auto/v1751094071/avatars/avatar_hv0ugE9ii7tYkZ7uDsO6N?_a=BAMClqZW0","description":"Web Developer","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":1610}},"image":"https://media.daily.dev/image/upload/s--6qBzxamc--/f_auto/v1769568880/posts/bnYob7M0E?_a=BAMAMiiu0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/hv0uge9ii7tykz7udso6n","name":"Hòa Nguyễn Coder"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hòa Nguyễn Coder","item":"https://daily.dev/sources/hv0uge9ii7tykz7udso6n"},{"@type":"ListItem","position":3,"name":"Building a Custom Curved Bottom Tab Bar with SVG Path in React Native & Web"}]}
```

