Baseline app example
This app serves as the minimal RSG 2.0 SDK app. It demonstrates the scaffolding produced by npx rk create.
Purpose
This app is a reference for the smallest correct app setup. It includes one anchor node (BaselineApp) that renders a centered title and subtitle. The app registers the node in index.ts and mounts it under the compiled BaseAppScene.
You can use this app as the starting point for new apps and as a baseline for the project structure, which includes the following:
roku-config.tstsconfig.jsonsrc/- Compiled components
Summary
This example covers the following:
- A minimal anchor node that returns a static SceneGraph layout (
LayoutGroupand Label) - The standard
main()toregisterAnchorNode()bootstrap inindex.ts - The project and configuration layout for a new RSG 2.0 SDK app
Development
To build, test, and lint the app, run these commands:
npx rk dev # Build + deploy to Roku device
pnpm test # Run tests
pnpm run lint # Lint sourcesUpdated about 4 hours ago
Did this page help you?