Files
Chris Tate 1c1fba0c0f fix(macos): place fresh windows correctly (#369)
* fix(macos): place fresh windows correctly

- Separate restored, explicit, and default window placement from persistence policy.
- Honor explicit origins and restore policy across platform seams and both macOS hosts.
- Add placement coverage, update docs, and remove obsolete example workarounds.

* fix(macos): honor window placement policies

* fix(macos): correct window placement policies

* fix(macos): preserve window placement contracts

* fix(runtime): restore secondary window placement
2026-08-16 19:06:29 -05:00
..
2026-05-08 17:54:42 -05:00

React Example

A super basic Native SDK example using React for the frontend and Zig for the native shell.

Run

zig build run

The build installs frontend dependencies, builds the frontend, and opens the native app shell with WebView content.

Dev Server

zig build dev

This starts the React dev server from app.zon, waits for http://127.0.0.1:5173/, and launches the native shell with NATIVE_SDK_FRONTEND_URL.

Frontend

  • Frontend: react
  • Production assets: frontend/dist
  • Dev URL: http://127.0.0.1:5173/

Using Outside The Repo

This example references the Native SDK via relative path (../../). To use it standalone, override the path:

zig build run -Dnative-sdk-path=/path/to/native-sdk