Skip to content
native cook
Esc

Loading the catalog…

NITRO UI × NATIVE COOK

Nitro UI on Native Cook: a Free RPG Inventory Block

Nitro UI is now part of Native Cook, starting with RPG Inventory: a free source example with glowing potions, live liquid and bottles that travel between screens.

Nitro UI on Native Cook, featuring the free RPG Inventory mobile UI example.
Our first NitroUI example brings the RPG Inventory experiment into Native Cook's source collection.

What is Nitro UI?

NitroUI is a framework for building native apps with React and TypeScript. React runs on the main thread alongside the native views. The renderer maps components to UIKit on iOS and Android views on Android, with synchronous updates.

Components, hooks and state will feel familiar to React developers. NitroUI also has its own renderer, app setup and native project files. Its typed native bindings let a TypeScript screen call Swift or Kotlin code. The official NitroUI overview explains the architecture and supported components.

That makes it an interesting place to build an interaction where the UI and a native effect need to respond together. RPG Inventory gave us a concrete test: move a bottle, let its liquid lag behind, and keep the equipment state consistent when the user saves or cancels.

A Nitro UI example you can inspect: RPG Inventory

I first shared this experiment in an X post, while trying an early version of the framework. The same RPG screen is now a free Native Cook source example.

The screen has a chapter with three choices, an XP meter and equipment slots. Open the inventory to compare five potions, sort them by quantity and move into a carousel to equip or unequip an item. Save commits the selection; Cancel keeps the previous equipment.

The bottle has more than one moving part

The glass, corks and icons start from the original Blender-rendered artwork. Native drawing adds liquid, light, surface highlights, bubbles and spell particles. A coupled surface simulation reacts to bottle velocity and impulses, so the liquid follows the movement with a delay.

The source keeps those pieces separate: React controls the screen and selection, while the example's StageFX native module draws the effects. You can inspect the TypeScript views, native bindings, shaders and assets together rather than guessing how a short clip was made.

RPG chapter with a glowing XP meter, three choices and equipped Life Potion.
Choices update the chapter stats and XP.
Life Potion in the inventory carousel with live liquid, equipment stats, Cancel and Save Changes controls.
The potion carousel shares the equipment state.

All 42 original asset files are preserved across the implementations. The source includes the font and artwork attribution files, so keep them with the block when you adapt it.

Start with the free Nitro UI source

Open RPG Inventory on Native Cook, choose Nitro UI, then open View code or copy the build prompt. A free account gives you access to this example. The NitroUI version is a standalone app with its own package manifest, native project, StageFX module and assets. Follow its README to install and run the complete example.

This example currently pins NitroUI 0.3.0. Since the framework is evolving, use the included lockfile for the example and check the current NitroUI installation guide when starting a new app. The official new-project command is:

bunx create-nitro-ui@latest MyApp

Here is how the example declares a bottle through its custom PotionView. The complete app prepares the bottle artwork and registers its native module before rendering this view:

import { PotionView } from 'app-stagefx'

<PotionView
  layout={{ width: 156, height: 187 }}
  kind="round"
  tint="#FF3B7A"
  tintBase="#A91542"
  level={0.62}
  glow={1}
  aura={1}
  animating
/>

Bring the complete example into your project before extracting individual effects. Then replace the game's choices and potion data, connect selection to your own state, and check save/cancel behavior and reduced motion on your target devices.

One Native Cook interaction, five implementations

RPG Inventory also has React Native, SwiftUI, Jetpack Compose and Flutter versions. Choose the implementation that belongs in your app; each follows the same equipment flow and uses the original artwork.

Where to start with RPG Inventory
StackSource to explore
Nitro UIThe standalone React/TypeScript app and its custom native StageFX module.
React NativeThe Expo gallery implementation using Skia and Reanimated.
SwiftUIThe native iOS screen and Metal effects.
Kotlin / ComposeThe Android screen, Canvas drawing and shader effects.
FlutterDart source, CustomPainter and fragment shaders.

We are starting NitroUI support with this block. Check the available stacks for each Native Cook example; this addition does not migrate the entire catalog to NitroUI. The implementations also have platform-specific rendering and transition differences, so compare them in your app before shipping.

For other interactions, browse React Native UI examples or our Flutter UI blocks guide. The Native Cook MCP guide explains the coding-agent workflow for published catalog blocks.

Nitro UI and Native Cook: questions

What is Nitro UI?

NitroUI is a React and TypeScript framework for native iOS and Android apps. It renders native views synchronously on the main thread and uses Nitro for typed native bindings.

Is Native Cook's Nitro UI example free?

Yes. RPG Inventory is a Free Native Cook block. Sign in to a free account, choose Nitro UI on the block page, and open View code or copy its build prompt. Keep the included license and attribution files when reusing the example.

Does every Native Cook block include Nitro UI?

NitroUI starts with RPG Inventory. Check each block's available stacks; adding this example does not make NitroUI available across the entire catalog.

Can I run the RPG Inventory NitroUI demo on Android?

NitroUI itself supports iOS and Android, but this particular demo's custom StageFX renderer uses iOS and Metal. The Kotlin and Flutter implementations provide separate Android versions of the interaction.