Skip to main content
v0.1.0iOS and Android · NitroUI 0.3

PencilKit-style ink
for NitroUI.

Pressure- and tilt-sensitive inks, erasers, lasso, ruler, zoom, undo and PNG, JPEG, SVG and PDF export. One C++ ink engine on tgfx; touches never cross into JavaScript.

$bun add nitro-ui-sketch

Everything a drawing app needs

A canvas, a tool picker and a document model that also works headless.

Built like PencilKit

The tools people expect from a notes app, on both platforms.

A few props, a whole app

Keep the tool and the drawing in state; the canvas and the picker do the rest.

Read the guides
const [drawing] = useState(() => new Drawing())

<SketchCanvas
layout={{ flex: 1 }}
drawing={drawing}
tool={{ type: 'ink', ink: 'pen', color: 0x1e88e5ff, width: 4 }}
maximumZoom={8}
onDrawingChange={(d) => setCount(d.strokeCount)}
/>
7
Inks
14
Tool picker items
4
Export formats
100
Undo steps

Draw on iOS and Android today.

Add the package, run nitro-ui prepare, and drop a SketchCanvas into your app.

Start the setup