Expense splitting app like Splitwise
Groups, four ways to split, who owes whom across every friend, and settle up. Seeded with a Goa trip, a flat, Friday dinners and a weekend in Lisbon.
- Free template
- Expo and Supabase
- iOS, Android, web
- Your own copy of the code








Screens built and filled with data




Workflows end to end
- Create a group
- Add an expense
- Review an expense
- See who owes whom
Tables already designed
Access rules on every table
Members read and write only their groups' rows through security definer functions (is_group_member, is_member_of); only an existing member can add people, a member can remove only themselves (the creator anyone), payers, split members and settlement parties must be members, you write as yourself only, and groups are created through the create_group RPC.
Supabase row-level security
Sample rows so no screen starts empty
- expense_splits97
- expenses28
- group_members20
- profiles8
- groups6
Features
Everything the app does, on day one
Groups for anything
Trips, flats, couples and dinners, each with its own people, currency, expenses and balances.

Split any way
Equally, by exact amounts, by percentages or by shares, computed to the paisa so every split adds up.
Expense detail and comments
Who paid, each person's share, the note, and a comment thread; edit or delete any expense.
Simplified debts
The fewest payments that clear a group, or every pair exactly as owed, switchable per group.
Settle up
One tap on a suggested payment, cash, UPI or bank transfer, and every balance updates.
Friends and balances
Everyone you split with and the total between you across all groups, per currency.
Activity and reminders
Every expense, payment and comment by day, searchable; remind a friend who owes you.
Group totals
Spending by category, by month and by person.
Accounts and privacy
Email sign-up and sign-in; people see only the groups they belong to.
Customize with prompts
Make it yours in one sentence
Pick what to change first. Your copy opens in the editor and the AI starts right away, changing this app in place.

Make it yours
You get your own copy of Expense splitting app. Tell the AI what to change first.
Themes and icons
Your look, before the first prompt
Pick a theme and an app icon. Your copy is made in them: no prompt, no credits.


Theme
App icon
Your copy starts in this look. It is one theme file, so every screen changes together, and you can keep adjusting it with prompts.
One prompt later
“Call it Kitty, make the brand colour violet, and add an optional tip percentage to expenses”
A real run on this template. One turn renamed the app, recoloured every screen and added the field to the database.


Workflows
What people can already do in it
Pick one to walk through its steps on the screen it happens on.






Groups for anything
Under the hood
A real full-stack app, not a mockup
For the technical side: how it is built, the database, the code itself and the stack.
The editor writes a real app. The app talks to its own Supabase backend, and the same code runs on phones and the web.
RapidNative editor
The AI writes the code, schema and sample data
Your app
Expo SDK 58, React Native, 17 screens
Supabase backend
Supabase: Postgres (8 tables, 26 access rules), auth, storage, API routes
Runs on
iOS, Android and the web
8 tables, linked the way the app works. Members read and write only their groups' rows through security definer functions (is_group_member, is_member_of); only an existing member can add people, a member can remove only themselves (the creator anyone), payers, split members and settlement parties must be members, you write as yourself only, and groups are created through the create_group RPC.
groups
6 sample rows
profiles
8 sample rows
group_members
20 sample rows
expenses
28 sample rows
expense_splits
97 sample rows
settlements
5 sample rows
expense_comments
3 sample rows
reminders
1 sample rows
Slices of this template's own files. Your copy is a standard Expo project: change it in the editor, by prompt or by hand, or, on a paid plan, download it and keep going in your own editor.
27export default function HomeScreen() {
28 const [sheetOpen, setSheetOpen] = useState(false);
29 const palette = usePalette();
30
31 const profileQ = useMyProfile();
32 const groupsQ = useMyGroups();
33 const ledgerQ = useAllLedger();
34 const profile = profileQ.data;
35 const groups = groupsQ.data ?? [];
36
37 const membersQ = useAllGroupMembers();
38 const book = useBalanceBook();
39
40 const expenses = ledgerQ.data?.expenses ?? [];
41 const settlements = ledgerQ.data?.settlements ?? [];
42
43 const overallByCurrency = book.myTotalsByCurrency;
44
45 const mainCurrency = profile?.default_currency ?? 'INR';
46 const entries = useMemo(
47 () => Array.from(overallByCurrency.entries()).filter(([, v]) => Math.abs(v) >= 1),
48 [overallByCurrency],
49 );
50 const mainNet = overallByCurrency.get(mainCurrency) ?? 0;
51 const otherEntries = useMemo(() => entries.filter(([cur]) => cur !== mainCurrency), [entries, mainCurrency]);
52
53 // Per-currency sums of friend debts I owe / that are owed to me — NEVER added across currencies.
54 const friendDebtsByCurrency = useMemo(() => {
55 const owe = new Map<string, number>();
56 const owed = new Map<string, number>();
57 for (const fb of book.byFriend.values()) {
58 for (const [cur, net] of fb.byCurrency.entries()) {
59 if (net > 0) owed.set(cur, (owed.get(cur) ?? 0) + net);
60 else if (net < 0) owe.set(cur, (owe.get(cur) ?? 0) - net);36export function useThemeColor() {
37 const { isDark } = useTheme();
38 const vars = (isDark ? darkTheme : lightTheme) as unknown as Record<string, string>;
39
40 return (key: string, opts?: ShadeOptions): string => {
41 const cacheKey = `${key}|${isDark ? 'dark' : 'light'}|${opts?.shade ?? 0}`;
42 if (cache[cacheKey]) return cache[cacheKey];
43
44 let val = vars[key];
45 if (val == null) {
46 // The vars may be wrapped as { __cssVars: {...} } by the nativewind shim.
47 const wrapped = (vars as unknown as { __cssVars?: Record<string, string> }).__cssVars;
48 val = wrapped?.[key];
49 }
50 if (val == null) return 'transparent';
51
52 const hex = rgbToHex(val);
53 const out = applyShade(hex, opts?.shade ?? 0);
54 cache[cacheKey] = out;
55 return out;
56 };
57}86create or replace function public.is_member_of(gid text, uid uuid)
87returns boolean
88language sql
89stable
90security definer
91set search_path = public
92as $$
93 select exists (
94 select 1 from group_members gm
95 where gm.group_id = gid and gm.user_id = uid
96 );
97$$;
98
99-- is the signed-in user the creator of the group
100create or replace function public.is_group_creator(gid text)
101returns boolean
102language sql
103stable
104security definer
105set search_path = public
106as $$
107 select exists (
108 select 1 from groups g
109 where g.id = gid and g.created_by = auth.uid()
110 );
111$$;
112
113-- does the signed-in user share a group with the given profile
114create or replace function public.shares_group_with(pid uuid)
115returns boolean
116language sql
117stable
118security definer
119set search_path = public39export const lightTheme = vars({
40 "--radius": "16",
41
42 "--background": "245 250 249",
43 "--foreground": "16 42 39",
44
45 "--card": "255 255 255",
46 "--card-foreground": "16 42 39",
47
48 "--popover": "255 255 255",
49 "--popover-foreground": "16 42 39",
50
51 "--primary": "13 148 136",
52 "--primary-foreground": "255 255 255",
53
54 "--secondary": "204 251 241",
55 "--secondary-foreground": "6 70 63",
56
57 "--muted": "226 240 237",
58 "--muted-foreground": "91 117 112",
59
60 "--accent": "245 158 11",
61 "--accent-foreground": "66 42 2",
62
63 "--destructive": "220 38 38",
64
65 "--border": "221 236 232",
66 "--input": "221 236 232",
67 "--ring": "13 148 136",
68
69 "--chart-1": "13 148 136",
70 "--chart-2": "245 158 11",
71 "--chart-3": "124 58 237",
72 "--chart-4": "236 72 153",Sample data: Three accounts that sign in (Aarav Mehta demo@rapidnative.com, Priya Nair priya@, Arjun Rao arjun@, password rapidnative-demo) and five people without accounts; six groups (Goa trip, Flat 4B, Friday dinners, Lisbon weekend in EUR, Office lunches fully settled, and Book club that Aarav is not in); 28 expenses using all four split types and nine categories; 5 payments; comments and a reminder. Good to know: No payments: "Settle up" records a payment (cash, UPI, bank transfer); it moves no money. Real payments (Stripe, UPI) plug in at the settle-up screen. Reminders and notification settings are simulated: a reminder is saved, no push or email is sent.
- Framework
- Expo SDK 58, React Native 0.88.0
- Navigation
- Expo Router 58.0.26, file-based routes
- Data
- TanStack Query 5.90.16
- Styling
- NativeWind 4.2.1, one theme file
- Database
- Supabase (Postgres), row-level security on every table
- Auth
- Email and password
- Server code
- API routes in api/, deployed with the app
- Language
- TypeScript 6.0.3, strict
- Platforms
- iOS, Android, web
- Ownership
- A standard Expo project; download the full source on the Starter plan and up
Screens
Every screen, built and filled with data
17 routes: /activity, /friends, /groups, /, /profile, /add-expense/[groupId], /balances/[groupId], /expense/[id], /friend/[id], /group-settings/[id], /group/[id], /group/new, /settle-up/[groupId], /settlement/[id], /totals/[groupId], /login, /signup.






Scan with your phone
On your phone
Try it on your phone first
This is the template itself, running live. Scan the code and it opens in Expo Go, the same way your own copy will.
Install Expo Go
Free on the App Store and Google Play.
Scan the code
With the Camera app on iPhone, or from Expo Go on Android.
Use the app
Sign in with the demo account and try every workflow on a real phone.
How it works
From template to the App Store
- Step 1
Use the template
You get your own copy in your account, running in the editor with its data.
- Step 2
Tell the AI what to change
Rename it, restyle it, add features. It edits this app; it does not start over.
- Step 3
Run it and ship it
Open it on your phone with a QR code, then publish to the App Store and Google Play.
Questions
Before you start
Is the template free?+
Do I own the code?+
Can I publish it to the App Store and Google Play?+
What is mocked?+
Can I use my own backend?+
Is this affiliated with Splitwise?+
More templates
Or start from another app
Your app, already started
Free to start. Your copy, your name, your brand, and the AI ready to change any of it.
Not affiliated with or endorsed by Splitwise. Splitwise is a trademark of its owner.














