Loading…

    How to Code
    an App

    Pick a language, create a project, run it on your phone and build one screen at a time. The route below covers iPhone and Android with one codebase. If you would rather describe the app than type it, Fastshot writes the same kind of project for you.

    8 stepsOne codebase for iPhone and AndroidRuns on Windows, Mac or LinuxOr generate the code from a prompt
    TL;DR

    How do you code an app?

    Pick one language that reaches both phones, create a project, run it on your own phone and build one screen at a time. The shortest route is React Native with Expo: TypeScript, one project, a QR code to test. If you do not want to type the code, describe the app to Fastshot and it generates a React Native and Expo project in about 5 to 7 minutes.

    Last updated: November 30, 2026

    Pick a Route Before You Pick a Language

    The route decides the language. Every language below ends with an app on a phone. They differ in how many platforms one codebase reaches and in what computer you need to write it.

    React Native with Expo is the shortest route for one person who wants both stores. You write TypeScript, and the React Native docs themselves recommend starting with a framework such as Expo. One project runs on iPhone and Android.

    Kotlin with Jetpack Compose makes an Android-only app, and Compose is the toolkit Android recommends for native screens. Swift with SwiftUI makes an iPhone and iPad app and needs Xcode, which runs only on a Mac. Flutter uses Dart and builds many screen sizes from one codebase.

    Four Ways to Code an App, Side by Side

    Same app, five routes. The last row is the no-typing route.

    RouteLanguageRuns onComputer you needHow you test it
    React Native with ExpoTypeScriptiPhone and AndroidWindows, Mac or Linux with Node.js LTSScan the dev server QR code with your phone
    Kotlin with Jetpack ComposeKotlinAndroidWindows, Mac or Linux with Android StudioAndroid emulator or a phone on a cable
    Swift with SwiftUISwiftiPhone and iPadA Mac with XcodeXcode simulator or an iPhone on a cable
    FlutterDartiPhone, Android and moreWindows, Mac or LinuxEmulator or a connected phone
    Fastshot promptPlain English, the AI writes the TypeScriptiPhone and Android, or native Kotlin on AndroidAny computer with a browserPreview in the browser, then on your phone with Preview on Device

    How Do You Code an App in 8 Steps?

    1

    Write the app on one page

    List the screens, the one thing a user does on each and the data you keep. A dog-walk tracker is three screens: today list, walk detail and client list. If your list runs past five screens, cut it. A small app you finish teaches more than a big one you drop.

    2

    Install Node.js and an editor

    Install the current Node.js LTS release, which Expo requires, and an editor such as VS Code. Expo runs on macOS, Windows and Linux, so a Mac is not needed to start.

    3

    Create the project

    Run the command in the first code box below. It creates a project with example screens that already run. Delete the examples as you replace them with your own.

    4

    Run it on your phone

    Start the development server with npx expo start. The terminal shows shortcuts: press a to open an Android emulator or i for the iOS simulator on a Mac, or open the project on a phone with a development build. Setting up the emulator, simulator or development build takes a few minutes: follow the Expo development build guide. Each time you save a file, the screen updates.

    5

    Build screens as files

    Expo Router turns files into screens: a file in the app folder is a route, so app/walk.tsx opens at /walk. Build each screen from View, Text and Pressable. Add a tab bar once you have three screens.

    6

    Keep the data somewhere

    Start with useState for values that live on one screen. Move shared values into a store such as Zustand. Add a database when users need accounts: Supabase with React Native covers sign-in, tables and image storage.

    7

    Test on both phones

    Open the same project on an iPhone and an Android phone. Look for the keyboard covering an input, larger system text breaking a card, and what the screen shows with no signal.

    8

    Build the files and publish

    Build the iOS and Android files with Expo's cloud build service, then upload them. Apple's Developer Program costs $99 a year and a Google Play account costs $25 once. The steps are in how to get an app on the App Store.

    Create the Project in One Command

    Run this in a terminal. It creates an Expo project called walk-tracker with example screens that already run, and moves into its folder.

    npx create-expo-app@latest walk-tracker
    cd walk-tracker

    Your First Screen in 20 Lines

    Replace the contents of app/(tabs)/index.tsx with this. It shows a counter and a button, and it updates live on your phone.

    app/(tabs)/index.tsx
    import { useState } from 'react';
    import { Pressable, StyleSheet, Text, View } from 'react-native';
    
    export default function HomeScreen() {
      const [walks, setWalks] = useState(0);
      return (
        <View style={styles.screen}>
          <Text style={styles.title}>Walks today: {walks}</Text>
          <Pressable style={styles.button} onPress={() => setWalks(walks + 1)}>
            <Text style={styles.label}>Mark a walk done</Text>
          </Pressable>
        </View>
      );
    }
    
    const styles = StyleSheet.create({
      screen: { flex: 1, alignItems: 'center', justifyContent: 'center', gap: 16 },
      title: { fontSize: 24, fontWeight: "600" },
      button: { backgroundColor: '#2563eb', paddingVertical: 14, paddingHorizontal: 24, borderRadius: 12 },
      label: { color: '#ffffff', fontSize: 16 },
    });

    The Three Parts of Every Coded App

    Whatever the language, an app is made of the same three things. Know which one you are working on.

    Screens: what the user sees

    Each screen is a function that returns layout. In the example above that is HomeScreen. Navigation links the screens into a flow.

    State: what the app remembers right now

    The walk counter is state. When it changes, the screen redraws. Values several screens share, such as the signed-in user, go in a store.

    Data: what survives closing the app

    Lists, profiles and photos live in a database or in storage on the phone. Without it, the counter resets every time the app closes.

    Skip the Typing: Generate the Code Instead

    Describe it. Fastshot writes a React Native and Expo project in TypeScript, with Expo Router screens, Zustand state and an optional Supabase backend. You type the idea, answer one or two questions, approve the plan and the first version runs in about 5 to 7 minutes.

    Read it, change it, keep it. Follow-up chat messages edit the code in place. When you want your own editor, download the source as a zip or export it to GitHub and open it in VS Code.

    Same finish line. Builds run on Fastshot build machines and give you APK, AAB and IPA files. Fastshot publishes to the App Store and Google Play with your own accounts. Website to app does the same job from a site address.

    Frequently Asked Questions

    What is the best language to code an app?

    TypeScript with React Native and Expo, if you want one app for iPhone and Android. Choose Kotlin if the app is Android only, or Swift if it is iPhone only and you own a Mac. Pick the route first, because it decides the language.

    Can I code an iPhone app on Windows?

    Yes, with Expo. You write TypeScript on Windows and test on a real iPhone. Xcode is for Mac only, so the cloud builds make the iPhone file for you. Xcode for Windows explains the options.

    How long does it take to code an app?

    A first screen that runs on your phone takes an afternoon once Node and Expo are installed. An app with sign-in, saved data and store listings is a project of weeks. A prompt in Fastshot gets a first version in 5 to 7 minutes.

    How much does it cost to code an app?

    Your time is the main cost. The fixed fees come at publishing: $99 a year for Apple and $25 once for Google Play. You pay neither while you build and test on your own phone.

    Can ChatGPT code an app for me?

    It writes code that you still have to set up, run, fix and sign. It does not make the IPA or the AAB. Fastshot does the build too. The ChatGPT page shows where each one stops.

    How do I write "I love you" in code?

    In an app it is one line: put a Text component that says I love you inside a View and the words appear on the phone. Wrap it in a Pressable that flips a state value and you get a button that reveals the message.

    Should I code the app myself or use an AI builder?

    Code it yourself when the goal is to learn or to control every file. Use a builder when the goal is a working app this week. The two mix well: generate the project in Fastshot, export the source and keep editing it by hand.

    Describe the App, Get the Code

    Type what the app does and Fastshot writes the React Native project, runs it on your phone and builds the store files.

    No coding needediOS and Android

    About the Author

    Elvira Dzhuraeva is an expert in AI mobile app development and React Native. A former Senior Product Manager at Google specializing in AI/ML and Generative AI, she is the Founder of Fastshot (YC-backed) and a founding contributor to Kubeflow.

    AI Mobile App DevelopmentReact NativeAI Developer ToolsVibecodingAI/ML Ops