Skip to content

Mobile apps · Expo

Grocery delivery app

A delivery app home screen with search, categories, a product grid, a live cart and a checkout summary.
Grocery delivery app 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 grocery delivery storefront for phones: delivery address and ETA, search, category chips, a two-column product grid with add-to-cart steppers, a floating cart bar and a cart screen with subtotal and delivery fee. The catalogue is in src/data.ts; checkout is not connected to a payment provider.

Files, exactly as copied.

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

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

App.tsx
App.tsx
import { useState } from "react";import { Pressable, StyleSheet, Text, View } from "react-native";import { StatusBar } from "expo-status-bar";import { SafeAreaProvider } from "react-native-safe-area-context";import { Ionicons } from "@expo/vector-icons";import { TabBar, type TabId } from "./src/components/TabBar";import { ShopScreen } from "./src/screens/ShopScreen";import { CartScreen } from "./src/screens/CartScreen";import { AccountScreen } from "./src/screens/AccountScreen";import { cartTotals, setQuantity, type Cart } from "./src/cart";import { money } from "./src/data";import { colors, radius, space } from "./src/theme"; export default function App() {  const [tab, setTab] = useState<TabId>("shop");  const [cart, setCart] = useState<Cart>({ p2: 1, p4: 1 });  const totals = cartTotals(cart);  const onQuantity = (id: string, qty: number) => setCart((c) => setQuantity(c, id, qty));   return (    <SafeAreaProvider>      <View style={styles.root}>        <View style={styles.screen}>          {tab === "shop" ? <ShopScreen cart={cart} onQuantity={onQuantity} /> : tab === "cart" ? <CartScreen cart={cart} onQuantity={onQuantity} onShop={() => setTab("shop")} /> : <AccountScreen />}          {tab === "shop" && totals.items > 0 ? (            <Pressable onPress={() => setTab("cart")} accessibilityRole="button" style={({ pressed }) => [styles.cartBar, pressed && { opacity: 0.9 }]}>              <View style={styles.cartCount}>                <Text style={styles.cartCountText}>{totals.items}</Text>              </View>              <Text style={styles.cartLabel}>View cart</Text>              <Text style={styles.cartTotal}>{money(totals.subtotal)}</Text>              <Ionicons name="chevron-forward" size={18} color="#ffffff" />            </Pressable>          ) : null}        </View>        <TabBar active={tab} onChange={setTab} cartCount={totals.items} />      </View>      <StatusBar style="dark" />    </SafeAreaProvider>  );} const styles = StyleSheet.create({  root: { flex: 1, backgroundColor: colors.background },  screen: { flex: 1 },  cartBar: {    position: "absolute",    left: space.lg,    right: space.lg,    bottom: space.lg,    flexDirection: "row",    alignItems: "center",    gap: space.md,    backgroundColor: colors.text,    borderRadius: radius.pill,    paddingVertical: space.md,    paddingHorizontal: space.lg,    boxShadow: "0px 6px 16px rgba(0, 0, 0, 0.18)",  },  cartCount: { width: 26, height: 26, borderRadius: 13, backgroundColor: colors.highlight, alignItems: "center", justifyContent: "center" },  cartCountText: { fontSize: 13, fontWeight: "700", color: colors.text },  cartLabel: { flex: 1, color: "#ffffff", fontSize: 16, fontWeight: "600" },  cartTotal: { color: "#ffffff", fontSize: 16, fontWeight: "700" },});

Remix

Remix this template.

Describe what to change and the agent starts from Grocery delivery app's files. The box is already started for you: finish “Start from Grocery delivery app 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 Grocery delivery app

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