The native code editor for React Native.
One C++ core shared by Android and iOS, drawn by a native view in Kotlin and Swift, with tree-sitter highlighting and a Nitro binding. Not a WebView in sight.
bun add react-native-codepad react-native-nitro-modules- Engine
- One C++ core
- Highlighting
- tree-sitter, 19 languages
- Binding
- Nitro, New Architecture
Every keystroke lands inside the frame.
Handling a key and drawing the result takes 3 ms on a 10,000 line file. A frame at 60 Hz is 16.7 ms. The rest is yours.
Simulator and emulator numbers, re-measured before each release to catch regressions. Numbers from a real device are welcome in an issue.
Nineteen languages. Ship only yours.
Every grammar is its own npm package, parsed by tree-sitter. Pick a language and a theme, then hover a capture to see what it paints.
An editor, not a text field.
No WebView and no TextInput. CodePad draws its own caret, handles and edit menu, and every key runs through the same engine paths.
Selection that feels native
Tap, double tap and long press, with handles, the loupe and the platform's own edit menu.
Undo in whole words
Keystrokes group into one undo step, so undo takes back what you meant.
Pairs and indents, handled
Brackets and quotes close as you type. A newline keeps the indent and adds a level inside an open bracket.
Find and replace, every match painted
Literal or regex, case sensitive and whole word, next and previous, replace one or all in a single undo group.
Hardware keyboards
A full key table on both platforms. These are the iOS chords; Android gets its own.
Build your own key row
The toolbar API drives the same paths as the keyboard, straight from JavaScript.
Soft wrap, or scroll
Wrap long lines or scroll sideways. The gutter and the active line come with both.
It rides the keyboard.
Turn on avoidKeyboard and the keyboard's overlap goes into the bottom inset on every frame of its animation. The caret never ends up behind it.
Each dot is one frame of the keyboard animation, slowed down 4×. The inset follows the curve, not a fixed jump.
One core, two native views.
The same C++ core runs on both platforms, and each platform draws it with its own view and text layout. These are release builds of the example app.




Your coding agent already knows it.
The CodePad skill gives coding agents the API and its pitfalls. The whole docs also ship as one plain text file.
Where it goes next.
Released steps are on npm. Everything after them is planned in the open, and ideas go to the issues.
and start typing.
Add the editor and one language package, run pod install, and follow the quick start.