Live Video Streaming in React Native: Lessons from Building TappN
By Henil J. Chhipani · 2025-06-01 · 7 min read
Deep dive into implementing live video streaming, multi-user sessions, and real-time interactions in a React Native app using VideoSDK, Supabase, and Cloudflare.
## The Vision
TappN is a live nightlife and events platform. When I joined as the founding engineer, the vision was ambitious: build a cross-platform app that handles **live video streaming**, **multi-user sessions**, and **real-time venue management** — all from a single codebase.
## Architecture Decisions
### Why React Native?
Cross-platform was non-negotiable. We needed to ship on both iOS and Android with a small team. React Native gave us:
- Single codebase for 3 apps (User iOS, User Android, Business)
- Hot reload for rapid development
- Access to native modules when needed
### The Streaming Stack
```
User Device → VideoSDK → Cloudflare (CDN) → Viewers
↕
Supabase (Realtime DB)
↕
Firebase (Notifications)
```
## Key Technical Challenges
### 1. Code Duplication Problem
With 3 apps sharing 60% of their codebase, duplication was killing us. I solved this with **flavours + modularization**:
```javascript
// shared/modules/streaming/index.ts
export const StreamingModule = {
initStream: (config) => { /* shared logic */ },
joinStream: (roomId) => { /* shared logic */ },
// App-specific overrides via config
}
```
**Result:** 40% reduction in code duplication, 50% faster build times.
### 2. Real-time Notifications
End-to-end notifications across Android and iOS using Firebase Cloud Messaging + Node.js backend:
```javascript
// Backend notification service
const sendNotification = async (userId, payload) => {
const tokens = await getDeviceTokens(userId);
await admin.messaging().sendMulticast({
tokens,
notification: payload,
android: { priority: 'high' },
apns: { payload: { aps: { sound: 'default' } } }
});
};
```
### 3. CMS Migration
Migrating from Directus Headless CMS to Supabase was a major undertaking but improved performance significantly. The key was building an abstraction layer that made the migration seamless.
## Shipping to Production
Publishing 3 apps across 2 platforms taught me:
- **App Store review** is strict — plan for rejections and iterations
- **Flavour-based builds** with different bundle IDs and signing configs
- **Staged rollouts** reduce risk
## Results
- 3 apps published (2 iOS + 1 Android)
- 50% faster build times after modularization
- Shipped MVP within tight founder-defined deadlines
Building TappN from scratch taught me more about production-grade mobile development than any course ever could.
TappN is a live nightlife and events platform. When I joined as the founding engineer, the vision was ambitious: build a cross-platform app that handles **live video streaming**, **multi-user sessions**, and **real-time venue management** — all from a single codebase.
## Architecture Decisions
### Why React Native?
Cross-platform was non-negotiable. We needed to ship on both iOS and Android with a small team. React Native gave us:
- Single codebase for 3 apps (User iOS, User Android, Business)
- Hot reload for rapid development
- Access to native modules when needed
### The Streaming Stack
```
User Device → VideoSDK → Cloudflare (CDN) → Viewers
↕
Supabase (Realtime DB)
↕
Firebase (Notifications)
```
## Key Technical Challenges
### 1. Code Duplication Problem
With 3 apps sharing 60% of their codebase, duplication was killing us. I solved this with **flavours + modularization**:
```javascript
// shared/modules/streaming/index.ts
export const StreamingModule = {
initStream: (config) => { /* shared logic */ },
joinStream: (roomId) => { /* shared logic */ },
// App-specific overrides via config
}
```
**Result:** 40% reduction in code duplication, 50% faster build times.
### 2. Real-time Notifications
End-to-end notifications across Android and iOS using Firebase Cloud Messaging + Node.js backend:
```javascript
// Backend notification service
const sendNotification = async (userId, payload) => {
const tokens = await getDeviceTokens(userId);
await admin.messaging().sendMulticast({
tokens,
notification: payload,
android: { priority: 'high' },
apns: { payload: { aps: { sound: 'default' } } }
});
};
```
### 3. CMS Migration
Migrating from Directus Headless CMS to Supabase was a major undertaking but improved performance significantly. The key was building an abstraction layer that made the migration seamless.
## Shipping to Production
Publishing 3 apps across 2 platforms taught me:
- **App Store review** is strict — plan for rejections and iterations
- **Flavour-based builds** with different bundle IDs and signing configs
- **Staged rollouts** reduce risk
## Results
- 3 apps published (2 iOS + 1 Android)
- 50% faster build times after modularization
- Shipped MVP within tight founder-defined deadlines
Building TappN from scratch taught me more about production-grade mobile development than any course ever could.
Tags: React Native, VideoSDK, Supabase, Architecture