Skip to content

Mobile apps · Expo

Notes

A notes app with search, pinning and a full-screen editor that saves as you type.
Notes starter, as built from its own files
Starter screenshot captured from this template's own web build (react-native-web) in a 390×844 phone viewport. In Codexa you can also open it on your phone with Expo Go.

What you get

A two-screen notes app: a searchable list with pinned notes first and relative dates, and an editor with title and body fields that save as you type, pin and delete. Notes persist with AsyncStorage, and an empty note is discarded when you go back.

Files, exactly as copied.

Exactly what is copied into a new project: 13 files, nothing generated.

Raw data: GET /api/v1/templates/expo-notes

src/notes.ts
src/notes.ts
/** Notes data and helpers. Notes are saved on the device with AsyncStorage (see App.tsx). */export type Note = { id: string; title: string; body: string; pinned: boolean; updatedAt: number }; export function newNote(): Note {  return { id: `n${Date.now()}`, title: "", body: "", pinned: false, updatedAt: Date.now() };} export function sortNotes(notes: Note[]): Note[] {  return [...notes].sort((a, b) => Number(b.pinned) - Number(a.pinned) || b.updatedAt - a.updatedAt);} export function noteTitle(n: Note): string {  return n.title.trim() || n.body.trim().split("\n")[0] || "Untitled";} export function formatWhen(ts: number, now = Date.now()): string {  const d = new Date(ts);  const sameDay = new Date(now).toDateString() === d.toDateString();  if (sameDay) return d.toLocaleTimeString("en-US", { hour: "numeric", minute: "2-digit" });  const days = Math.floor((now - ts) / 86_400_000);  if (days < 7) return d.toLocaleDateString("en-US", { weekday: "long" });  return d.toLocaleDateString("en-US", { month: "short", day: "numeric" });} export function sampleNotes(): Note[] {  const now = Date.now();  const h = 3_600_000;  return [    { id: "n1", title: "Weekend market list", body: "Sourdough\nTomatoes (the striped ones)\nGoat cheese\nFlowers for the table", pinned: true, updatedAt: now - 2 * h },    { id: "n2", title: "Book club: next picks", body: "Tomorrow, and Tomorrow, and Tomorrow — vote by Friday.\nAlso suggested: Piranesi, The Overstory.", pinned: false, updatedAt: now - 26 * h },    { id: "n3", title: "Trip to Lisbon", body: "Tram 28 early, before the queues. Pastéis in Belém. Sunset at Miradouro da Senhora do Monte.", pinned: false, updatedAt: now - 3 * 24 * h },    { id: "n4", title: "Ideas for the garden", body: "Move the rosemary to the sunny corner. Try a raised bed for herbs.", pinned: false, updatedAt: now - 9 * 24 * h },  ];}

Remix

Remix this template.

Describe what to change and the agent starts from Notes's files. The box is already started for you: finish “Start from Notes and …”

Agent ready

Creates a free account first; your idea is carried over.

Dependencies

Documented from the template's package.json. The runtime has a prebuilt dependency set for Expo · React Native, so installs are fast.

  • expo~58.0.23
  • react19.3.0
  • react-native0.88.1
  • react-native-web~0.21.4
  • react-native-safe-area-context~5.11.1
  • @expo/vector-icons^15.0.2
  • @react-native-async-storage/async-storage2.2.0
  • typescript~6.0.3

How it runs

Framework
Expo · React Native
Dev command
npm run dev
Build command
npm run build
Output directory
dist
Port
8081
Entry route
/

Projects run in an isolated sandbox with a live preview. Read the projects documentation for settings, snapshots and deployment.

All templates

Build on Notes

Create a free account, start from this template, and ask the AI agent to turn it into your app.