Skip to content

Latest commit

 

History

History
 
 

README.md

Example App

This is a local Expo SDK 54 app for developing and manually testing the native editor package in this repository.

The package currently requires Expo Modules, and Expo SDK 54 is the minimum version tested in this repo.

It is intended for:

  • focus and keyboard dismissal checks
  • toolbar interactions
  • list and line break behavior
  • theme iteration under Fast Refresh
  • native iOS and Android verification

Install

From the repository root:

cd example
npm install

Prebuild

This package contains native code, so you need to generate the native projects before building:

npm run prebuild

This runs expo prebuild --clean, creating the ios/ and android/ directories. Re-run this after any native dependency change or Expo config update.

Run

From the repository root:

npm run example:ios
npm run example:android

Or directly inside example/:

npm run ios
npm run android

Notes

  • This package contains native code — use a development build, not Expo Go.
  • The example app depends on the local package via file:...
  • If you change native code or Rust bindings, rebuild the app after updating the package binaries.
  • If the native build fails after pulling new changes, try running prebuild again.
  • The example screen uses app-level keyboard avoidance on iOS around the outer ScrollView. That matches a screen-level form or playground.
  • On Android, the example relies on the activity's adjustResize behavior instead of stacking KeyboardAvoidingView on top of the native editor insets.
  • The editor still manages its own internal caret visibility and fixed-height scrolling. Screen-level keyboard avoidance and native editor viewport handling are complementary, not interchangeable.