Try React Native online

Explore View, Text, Pressable and reusable components in Sukoaa’s file editor. Drag the divider to give code or preview more room.

Default previews use React Native Web on your device. Expo is optional for phone testing.

components/Counter.tsx
import React, { useState } from "react";
import { Pressable, Text } from "react-native";

export default function Counter() {
  const [count, setCount] = useState(0);
  return <Pressable onPress={() => setCount(n => n + 1)}>
    <Text>Count: {count}</Text>
  </Pressable>;
}
Expected output
Tap the button → update the count

Files and imports

Add files and folders, import components and edit TSX with bracket completion. Save locally or export your current source.

Web and phone testing

Use the web preview or follow the provider’s Expo Go instructions on a compatible Android or iOS phone.

Preview and errors

Inspect console output and errors with file and line locations. Drag the code/preview divider or use the arrow keys.

How to use this tool

  1. Open the React Native workspace and choose a starter.

  2. Edit App.tsx and imported components in Sukoaa, then click Run project.

  3. Drag the divider to resize code and display. Save locally or export ZIP to keep your work.

Limits and requirements

The default preview uses React Native Web on your device. It does not emulate Android/iOS or provide custom native modules or APK/IPA builds. Extra npm packages load from esm.sh and need exact versions and web compatibility. Optional Expo mode sends code edited there to Expo; its edits must be saved or exported using Expo controls.

Frequently asked questions

Will my source be saved?

Local drafts stay in this browser’s storage. Export a ZIP or source file to keep a separate copy. Cloud saves need a configured account and are sent to the site’s database.

Does this use AI?

Running code in this playground does not call an AI provider.

Can I use real account credentials in sample code?

Use test data for experiments. Browser code, source exports, console messages, and debug reports can expose values you put in them.