Mẫu Nhà cửa
Hearth AI Room Redesign App
An Expo and React Native app that redesigns a photographed room in one of 12 interior styles with AI, with refine, wall colour, boards and Pro subscriptions. Runs on sample rooms with real AI redesigns until you connect Supabase.
- 18 màn hình
- iOS & Android
- Dữ liệu mẫu
- Cập nhật 4 thg 11, 2026
- Bản phát hành đã kiểm tra
Sao chép miễn phí · Toàn bộ mã nguồn · Không cần thẻ
Màn hình
6 màn hình từ ứng dụng thực tế.
Có gì bên trong
- Photo in, four redesigned versions of the same room out, each with a What changed list written by the AI
- Drag-to-compare before and after, plus Refine (brush an area), wall colours and furniture swaps as new versions
- Sample mode: six real rooms with real AI redesigns made from the same photos, so the app is complete before setup
- Three AI tasks (redesign-room, refine-area, recolor-walls) on Gemini through a Supabase Edge Function
- Daily credits checked on the server: 12 a day free, 100 a day with Pro, credits returned when a task fails
- Pro through RevenueCat: sample prices until you connect RevenueCat to sell
Giới thiệu mẫu
Overview
Hearth is an AI room redesign app. A person photographs a room, picks the room type and one of 12 styles (Japandi, Mid-century, Scandinavian, Coastal, Boho, Organic modern, Industrial, Farmhouse, Minimal, Modern, Classic, Glam), and gets four redesigned versions that keep the room's walls, windows and floor. They compare before and after, refine a version, save ideas to boards and browse finished rooms in Explore.
It is built with Expo SDK 57 and React Native on the FluxNative kernel. With an empty .env it runs in sample mode: six real room photos with AI redesigns made in advance from those exact photos, three sample boards, and the same daily credit rule the server enforces. Connecting Supabase switches every service to the live backend with no code changes.
Key features
New design in four steps: photo (camera, library or a sample room), room type, style, options (keep the layout, colour palette, budget feel), with the credit cost on the Generate button.
Designing screen that names what the AI is doing, the usual time and the time so far, then reveals the versions. Leaving keeps the job running.
Result screen with the AI picture and the room before as an inset, a drag-to-compare slider, every version, and a What changed list.
Refine (brush an area and describe the change), Walls (seven paint colours) and Furniture (swap a piece); each adds a version and keeps the others.
Boards of saved designs and Explore photos; Explore with a style of the week, room and style filters, and Use this style.
Onboarding with large room and style cards; You tab with today's credits, taste, purchases, privacy and Delete my data.
Designed states for every AI failure: credits used up, refused, offline, not set up. Nothing is charged for a failure.
Screens
Design, New design, Designing, Result, Refine, Your designs, Boards, Board, Explore, Inspiration, You, Hearth Pro, Welcome, Onboarding, Terms of use, Privacy policy and About.
AI and backend
The ai Supabase Edge Function runs three tasks with Gemini: redesign-room (4 credits: four image edits and one vision pass for the What changed lists), refine-area (3) and recolor-walls (2).
Each person signs in anonymously. Photos and results go to a private storage bucket; designs, versions, boards and board items are Postgres tables with row-level security.
The room tasks write their own rows on the server, so a design finishes even if the app is closed.
Daily allowance per user in units, taken before a task and given back when it fails; Pro gets the larger allowance from the RevenueCat webhook.
Sample mode needs no backend: the sample rooms answer with their pre-made redesigns, and the camera, library, other styles and free-text edits say they open once the AI is connected.
Monetisation
Hearth Pro is a RevenueCat subscription with weekly and yearly plans. Without RevenueCat keys the paywall shows sample prices ($6.99 a week, $49.99 a year) with the note that subscriptions open in the App Store version, and never grants access. Connect RevenueCat to sell; purchases are logged in with the Supabase user id so the webhook raises that user's daily credits from 12 to 100.
Setup
Connect Supabase and apply the two migrations, add the Gemini key and deploy the functions, then connect RevenueCat to sell Pro. The README lists every value and what is sent to the AI provider.
Bạn nhận được
- Toàn bộ mã nguồn — Expo và React Native bằng TypeScript, là một ứng dụng trong không gian làm việc của bạn.
- Xem trước trực tiếp — thử mọi thay đổi ngay trên trình duyệt hoặc điện thoại.
- Bản phát hành đã kiểm tra — biên dịch được và mọi màn hình mở không lỗi.
- Trợ lý AI — đổi mọi thứ bằng chat; mỗi thay đổi dùng credit.
- Bản dựng và tải lên cửa hàng — bản dựng iOS và Android, gửi lên App Store và Google Play từ Xuất bản.
- Sao chép không tốn credit — bản thân việc sao chép không mất credit nào.
Được làm bằng phiên bản FluxNative hiện tại.
Bạn cần
- Tài khoản FluxNative — gói Free chứa tối đa 2 ứng dụng.
- Không cần backend để bắt đầu — chạy bằng dữ liệu mẫu cho đến khi bạn kết nối backend của mình.
- Gói Creator trở lên — để dựng bản native và tải lên cửa hàng.
- Tài khoản cửa hàng — Apple Developer Program (99 USD/năm) và Google Play (25 USD một lần), để xuất bản.
Mã nguồn có gì
- màn hình
- 18
- file trong bản sao
- 387
- dòng code viết riêng cho ứng dụng
- 6.981
- component giao diện có sẵn
- 142
Ngôn ngữ trong ứng dụng: Tiếng Anh và Tiếng Việt
Công nghệ
- Expo SDK
- 57.0.22
- React Native
- 0.86.3
- React
- 19.2.8
- TypeScript
- 6.0.3
- Expo Router
- 57.0.21
- Supabase JS
- 2.112.3
- RevenueCat
- 10.9.1
Từ package.json của bản phát hành này.
Hệ thống thiết kế
- Tiêu đề
- Phông hệ thống
- Nội dung
- Phông hệ thống
- Chế độ sáng và tối
- Liquid Glass
- Nút bo tròn
- Thẻ phẳng
Thiết lập sau khi sao chép
Bản sao của bạn mở cùng trợ lý AI đã xây nó. Làm các bước theo thứ tự: kết nối những gì từng bước yêu cầu trong Máy chủ, rồi gửi từng câu lệnh.
Connect Supabase
In Server › Backend › Supabase: connect a project, apply both migrations, turn on anonymous sign-ins in the Supabase dashboard, and write the public URL and anon key to .env.
Câu lệnh cho AIConnect this app to my Supabase project (Server › Backend › Supabase). Apply supabase/migrations/20261019000000_ai_kit.sql and then supabase/migrations/20261019120000_hearth.sql. Write EXPO_PUBLIC_SUPABASE_URL and EXPO_PUBLIC_SUPABASE_ANON_KEY to .env (keep the keys, empty, in .env.example). Remind me to turn on Authentication › Sign In / Providers › Allow anonymous sign-ins in the Supabase dashboard, because Hearth signs every person in anonymously. Then check that the designs, design_variations, boards and board_items tables exist with row-level security on.
Turn on the AI
In Server › API keys & secrets: add GEMINI_API_KEY and set AI_FREE_UNITS_PER_DAY=12 and AI_PRO_UNITS_PER_DAY=100, then deploy the ai function and push its secrets.
Câu lệnh cho AITurn on Hearth's AI. In Server › API keys & secrets add GEMINI_API_KEY (I will paste it), AI_FREE_UNITS_PER_DAY=12 and AI_PRO_UNITS_PER_DAY=100. Deploy the ai Edge Function from supabase/functions/ai and push those secrets to it. Invoke it as a test user with { "task": "usage" } and show me the answer: it should report a limit of 12. Keep src/services/ai/allowance.ts (FREE_CREDITS_PER_DAY, PRO_CREDITS_PER_DAY) equal to the two secrets.
Sell Pro
In Server › Monetization: connect RevenueCat with an entitlement pro and weekly and yearly packages, add the public SDK keys, and deploy the webhook with REVENUECAT_WEBHOOK_SECRET.
Câu lệnh cho AISet up Hearth Pro (Server › Monetization). Connect RevenueCat with an entitlement named pro and a current offering with a weekly and a yearly package. Write EXPO_PUBLIC_REVENUECAT_IOS_KEY and EXPO_PUBLIC_REVENUECAT_ANDROID_KEY to .env. Save a long random REVENUECAT_WEBHOOK_SECRET in Server › API keys & secrets, deploy supabase/functions/revenuecat-webhook with JWT verification off, push the secret, and tell me the webhook URL and Authorization header to enter in RevenueCat › Integrations › Webhooks. Update PLAN_PREVIEW in src/services/iap/index.ts to the prices I choose.
Choose your styles and sample rooms
Edit the 12 styles, paint colours and the Explore feed in the catalog; replace the sample rooms (photos and their AI redesigns) or keep them for the store demo.
Câu lệnh cho AIHelp me tailor Hearth's content. The styles, room types, paint colours and Explore photos live in src/services/catalog/index.ts and src/data/interiors.ts; the sample rooms and their pre-made redesigns are in src/data/samples.ts and assets/samples (credits in assets/samples/CREDITS.md). Show me the current list of styles and ask which to keep, rename or add; when I add a style, give it a cover photo, a short line, a palette and the descriptions the AI prompt uses.
Set your icon, store IDs and legal pages
Rename the app, draw its icon, set the colours and point the legal links at your own privacy policy, terms and support pages.
Câu lệnh cho AIMake Hearth mine: rename the app to the name I give (app.json name, slug, scheme and bundle identifiers, the welcome screen and About), redesign the icon in assets/icon.svg and assets/adaptive-icon.svg and render the PNGs, set the accent colour in src/theme/brand.ts, and write EXPO_PUBLIC_PRIVACY_POLICY_URL, EXPO_PUBLIC_TERMS_URL and EXPO_PUBLIC_SUPPORT_URL to .env (or update the in-app pages in src/features/legal) with my company's details.
Cách dùng mẫu này
- Dùng mẫu để có một bản sao chỉnh sửa được, kèm mã nguồn, trong không gian làm việc của bạn (Mẫu).
- Nhờ trợ lý AI thay đổi những gì bạn muốn, bằng lời thường (Làm việc với trợ lý).
- Xem thử từng thay đổi trong bản xem trước trực tiếp, hoặc trên điện thoại (Xem trước).
- Từ gói Creator trở lên, build cho iOS và Android rồi gửi lên các cửa hàng (Tổng quan phát hành).
Giấy phép và hỗ trợ
Giấy phép
Ứng dụng được tạo cho bạn là của bạn; mã của mẫu vẫn thuộc InspireUI và được cấp phép để dùng trong các ứng dụng của bạn (Điều khoản › Sở hữu trí tuệ của chúng tôi).
Trợ giúp
- Hướng dẫn về template, trợ lý và xuất bản.
- Liên hệ hỗ trợ từ Trợ giúp; thường phản hồi trong 1–2 ngày làm việc.
- Trong bản sao của bạn, hỏi trợ lý AI về bất kỳ màn hình hay tệp nào.
Do FluxNative tạo
Chính sách hỗ trợCâu hỏi
Có miễn phí không?
Sao chép template miễn phí không mất gì, kể cả credit; template Premium mua một lần cho mỗi website. Đổi bằng chat và bản dựng dùng credit.
Tôi sở hữu gì?
Bạn sở hữu ứng dụng được tạo cho bạn. Mã của template vẫn thuộc InspireUI và được cấp phép dùng trong ứng dụng của bạn (Điều khoản › Quyền sở hữu trí tuệ của chúng tôi).
Tôi có cần biết code không?
Không. Nhờ trợ lý đổi bằng lời thường; có toàn bộ mã nguồn khi bạn cần.
Có kèm backend không?
Không. Ứng dụng đầy đủ nêu backend cần dùng và bạn kết nối backend của mình trong Máy chủ; bản thiết kế chạy bằng dữ liệu mẫu.
Tôi đổi được thiết kế không?
Được. Tab Thiết kế đặt màu thương hiệu, màu sắc, phông chữ và bo góc mà không tốn credit; trợ lý đổi phần còn lại.
Cần gói nào để xuất bản?
Gói Creator trở lên dựng và tải lên cửa hàng, bằng tài khoản Apple và Google của bạn. Ứng dụng từ template Premium dựng được ở mọi gói khi đã kết nối website.
Tôi tải được mã nguồn không?
Được, bằng Tải mã nguồn hoặc Đẩy lên GitHub, khi không gian làm việc của bạn đã mua gói, credit hoặc template trả phí. Ứng dụng từ template Premium cũng cần kết nối website.
Nếu nó được tạo bằng FluxNative cũ hơn thì sao?
Bản sao của bạn vẫn chạy bình thường. Nhờ trợ lý cập nhật để có tính năng mới như ngôn ngữ và tiền tệ của ứng dụng; đó là bước thiết lập cuối.
Sẵn sàng biến mẫu này thành ứng dụng của bạn?
Bắt đầu từ Hearth AI Room Redesign App và thay đổi mọi thứ qua chat. Bản sao của bạn có đầy đủ mã nguồn.
Sao chép miễn phí. Không cần thẻ tín dụng.