vi studio

Lessons · Getting started · 1 of 36

Welcome to Vi

What Vi is and how Vi Studio works.

Vi is a small language for building app screens. You describe what you want — boxes, text, buttons and the data behind them — almost in plain English, and Vi turns it into a real React Native app that runs on Android, iOS and the web.

Vi is for everyone who has an app idea, students most of all. Vi Studio runs on a computer, in a web browser and on your phone, and each of them builds real apps: you can write one on your phone and watch it run right there. When you grow past what Vi has, the whole React Native world is still open to you: a .tsx file in your project joins the app.

How Vi Studio works

The whole idea in one example

count = 0

main app:
  arrange: center
  space_between: 16
  children:
    display:
      text: "Count: {count}"
      text_style: 32
    plus:
      button: "+"
      on_tap: count = count + 1

Three ideas carry the whole language:

  1. Containers (display:, plus:) are the things on screen, described with attribute: value lines.
  2. Variables (count = 0) hold your data. When they change, the screen redraws by itself.
  3. Functions do the work, usually in response to an event like on_tap.

Continue with Vi in five minutes.

Every example here runs in Vi Studio: open it in your browser (phones too) and press Start learning on the welcome page. Each code block there has a Try it button that runs it in the phone preview.

More in Getting started

About Vi. Vi is a free, open-source programming language for building real mobile apps. You describe each screen in plain words, and Vi compiles it to React Native (Expo) for Android, iOS and the web. Its editor, Vi Studio, runs on Windows, in any browser and on your phone, with the app running live as you type. Read more about Vi.