跳到主要内容

居家模板

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 个界面
  • iOS 和 Android
  • 示例数据
  • 更新于 2026年11月4日
  • 已验证版本

免费复制 · 完整源码 · 无需信用卡

界面

来自实际运行应用的 6 个界面。

包含内容

  1. Photo in, four redesigned versions of the same room out, each with a What changed list written by the AI
  2. Drag-to-compare before and after, plus Refine (brush an area), wall colours and furniture swaps as new versions
  3. Sample mode: six real rooms with real AI redesigns made from the same photos, so the app is complete before setup
  4. Three AI tasks (redesign-room, refine-area, recolor-walls) on Gemini through a Supabase Edge Function
  5. Daily credits checked on the server: 12 a day free, 100 a day with Pro, credits returned when a task fails
  6. Pro through RevenueCat: sample prices until you connect RevenueCat to sell

关于此模板

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.

aiinterior designroom redesignhome decorgeminisupabaserevenuecatreact nativeexpotemplate

你将获得

  • 完整源码 — 使用 TypeScript 的 Expo 和 React Native,作为你工作区中的一个应用。
  • 实时预览 — 在浏览器或手机上试用每项更改。
  • 已验证版本 — 可编译,每个界面都能无错误打开。
  • AI 助手 — 用聊天修改任何内容;每次修改会消耗积分。
  • 构建与上架 — iOS 和 Android 构建,从发布页发送到 App Store 和 Google Play。
  • 复制不耗积分 — 复制本身不收费。

使用当前版本的 FluxNative 制作。

你需要什么

  • FluxNative 账号 — 免费套餐最多可有 2 个应用。
  • 无需先接后端 — 在你连接自己的后端之前,它使用示例数据运行。
  • Creator 或更高套餐 — 用于原生构建和上架。
  • 商店账号 — Apple Developer Program(每年 99 美元)和 Google Play(一次性 25 美元),用于发布。

源码里有什么

个界面
18
个文件(副本中)
387
行为此应用编写的代码
6,981
个现成 UI 组件
142

应用文本语言:英语和越南语

技术栈

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

来自此版本的 package.json。

设计系统

标题
系统字体
正文
系统字体
  • 支持浅色和深色模式
  • Liquid Glass
  • 胶囊按钮
  • 扁平卡片

复刻后的设置

你的副本会和构建它的 AI 助手一起打开。按顺序完成步骤:某一步需要连接的内容,请在 Server 中连接,然后发送每条提示词。

  1. 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.

    给 AI 的提示词

    Connect 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.

  2. 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.

    给 AI 的提示词

    Turn 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.

  3. 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.

    给 AI 的提示词

    Set 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.

  4. 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.

    给 AI 的提示词

    Help 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.

  5. 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.

    给 AI 的提示词

    Make 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.

如何使用此模板

  1. 使用模板,在你的工作区中获得一个可编辑的副本及其源代码(模板)。
  2. 用平常的话告诉 AI 助手你想要的修改(与助手协作)。
  3. 在实时预览或手机上试用每次修改(预览)。
  4. 使用 Creator 或更高套餐,构建 iOS 和 Android 应用并提交到应用商店(发布概览)。

许可与支持

许可

为你生成的应用归你所有;模板代码仍归 InspireUI 所有,并授权你在自己的应用中使用(条款 › 我们的知识产权)。

帮助

  • 指南:模板、助手和发布。
  • 在帮助中联系支持;通常 1–2 个工作日内回复。
  • 在你的副本中,可向 AI 助手询问任何界面或文件。

由 FluxNative 制作

支持政策

常见问题

免费吗?

复制免费模板不收费,也不耗积分;Premium 模板按网站一次性购买。聊天修改和构建会消耗积分。

我拥有什么?

为你生成的应用归你所有。模板代码仍归 InspireUI 所有,并授权你在自己的应用中使用(条款 › 我们的知识产权)。

需要懂代码吗?

不需要。用日常语言让助手修改;需要时随时可看完整源码。

自带后端吗?

不带。完整应用会写明所需后端,你在 Server 中连接自己的;设计模板使用示例数据运行。

可以改设计吗?

可以。设计标签页可设置品牌色、颜色、字体和圆角,不耗积分;其余由助手修改。

发布需要哪个套餐?

Creator 或更高套餐,用你自己的 Apple 和 Google 账号构建并上传到商店。Premium 模板的应用在连接其网站后,任何套餐都能构建。

能下载源码吗?

可以,使用“下载源码”或“推送到 GitHub”,前提是你的工作区已购买套餐、积分或付费模板。Premium 模板的应用还需连接其网站。

如果是用较早版本的 FluxNative 做的呢?

你的副本照常可用。让助手把它更新到较新的功能,如应用语言和货币;这是最后一个设置步骤。

准备好打造你的应用了吗?

从 Hearth AI Room Redesign App 开始,通过聊天修改任何内容。你的副本包含完整源代码。

免费复刻,无需信用卡。

Taking a little longer than usual…

Loading FluxNative