Skip to content
ContractSpec
Start here

Package manual · platform

·Interfaces, presentations and design

lib.presentation-runtime-react-native

React Native presentation runtime for mobile apps

platformlibraryv45.0.5stablereact-nativenode
@lssm-tech/lib.presentation-runtime-react-native
bun add @lssm-tech/lib.presentation-runtime-react-native
Package source ↗Manifest ↗

Manifest declarations describe the current workspace; they do not verify registry publication or runtime execution.

Package guide

Website: https://contractspec.io

React Native presentation runtime for mobile apps.

What It Provides

  • Layer: lib.
  • Consumers: mobile apps.
  • Related ContractSpec packages include @lssm-tech/lib.presentation-runtime-core, @lssm-tech/lib.presentation-runtime-react, @lssm-tech/lib.ui-kit, @lssm-tech/tool.bun.
  • Related ContractSpec packages include @lssm-tech/lib.presentation-runtime-core, @lssm-tech/lib.presentation-runtime-react, @lssm-tech/lib.ui-kit, @lssm-tech/tool.bun.

Installation

npm install @lssm-tech/lib.presentation-runtime-react-native

or

bun add @lssm-tech/lib.presentation-runtime-react-native

Usage

Import the root entrypoint from @lssm-tech/lib.presentation-runtime-react-native, or choose a documented subpath when you only need one part of the package surface.

Architecture

  • src/index.ts is the root public barrel and package entrypoint.
  • src/nativewind-env.d.ts is part of the package's public or composition surface.
  • src/useContractTable.ts is part of the package's public or composition surface.
  • src/useDataViewTable.ts is part of the package's public or composition surface.
  • src/useVisualizationModel.ts is part of the package's public or composition surface.

Public Entry Points

  • Export . resolves through ./src/index.ts.
  • Export ./nativewind-env.d resolves through ./src/nativewind-env.d.ts.
  • Export ./useContractTable resolves through ./src/useContractTable.ts.
  • Export ./useDataViewTable resolves through ./src/useDataViewTable.ts.
  • Export ./useVisualizationModel resolves through ./src/useVisualizationModel.ts.

Local Commands

  • bun run dev — contractspec-bun-build dev
  • bun run build — contractspec-bun-build build
  • bun run lint — bun run lint:fix
  • bun run lint:check — biome check .
  • bun run lint:fix — biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .
  • bun run typecheck — tsgo --noEmit -p tsconfig.json
  • bun run publish:pkg — bun publish --tolerate-republish --ignore-scripts --verbose
  • bun run publish:pkg:canary — bun publish:pkg --tag canary
  • bun run clean — rimraf dist .turbo
  • bun run build:bundle — contractspec-bun-build transpile
  • bun run build:types — contractspec-bun-build types
  • bun run prebuild — contractspec-bun-build prebuild

Recent Updates

  • Replace eslint+prettier by biomejs to optimize speed.
  • Add table capabilities.

Notes

  • Must stay compatible with presentation-runtime-core; do not diverge from the shared interface.
  • NativeWind integration is platform-specific — changes must be tested on actual devices/simulators.
  • Avoid web-only APIs; all code must run in React Native's JavaScript environment.

Standalone declaration exports keep their existing public subpath names. The shared builder preserves their original declaration suffix and copies checked source declarations into dist, without overwriting emitted implementation types.

Canonical feature and feature-hub imports preserve all original native renderer bodies and public export maps. The React re-export boundary remains intact and requires the complete React renderer supplier joins; task-bound adoption, producer, compiler and affected consumer qualification remain pending.

Relationships

THIS PACKAGElib.presentation-runtime-react-native8 import paths

Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.

4 declarations

Declared capabilities

Lib Presentation Runtime React Native

React Native presentation runtime for mobile apps

Scripts

  • cleanrimraf dist .turbo
  • publish:pkgbun publish --tolerate-republish --ignore-scripts --verbose
  • publish:pkg:canarybun publish:pkg --tag canary
  • buildcontractspec-bun-build build
  • build:bundlecontractspec-bun-build transpile
  • build:typescontractspec-bun-build types
  • devcontractspec-bun-build dev
  • lintbun run lint:fix
  • lint:fixnode ../../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .
  • lint:checknode ../../../../scripts/biome.cjs check .
  • testbun test --pass-with-no-tests
  • prebuildcontractspec-bun-build prebuild
  • typechecktsgo --noEmit -p tsconfig.json