@contractspec/lib.presentation-runtime-react-native
v36.0.1
Published
React Native presentation runtime for mobile apps
Maintainers
Readme
@contractspec/lib.presentation-runtime-react-native
Website: https://contractspec.io
React Native presentation runtime for mobile apps.
What It Provides
- Layer: lib.
- Consumers: mobile apps.
- Related ContractSpec packages include
@contractspec/lib.presentation-runtime-core,@contractspec/lib.presentation-runtime-react,@contractspec/lib.ui-kit,@contractspec/tool.bun. - Related ContractSpec packages include
@contractspec/lib.presentation-runtime-core,@contractspec/lib.presentation-runtime-react,@contractspec/lib.ui-kit,@contractspec/tool.bun.
Installation
npm install @contractspec/lib.presentation-runtime-react-native
or
bun add @contractspec/lib.presentation-runtime-react-native
Usage
Import the root entrypoint from @contractspec/lib.presentation-runtime-react-native, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/index.tsis the root public barrel and package entrypoint.src/nativewind-env.d.tsis part of the package's public or composition surface.src/useContractTable.tsis part of the package's public or composition surface.src/useDataViewTable.tsis part of the package's public or composition surface.
Public Entry Points
- Export
.resolves through./src/index.ts. - Export
./nativewind-env.dresolves through./src/nativewind-env.d.ts. - Export
./useContractTableresolves through./src/useContractTable.ts. - Export
./useDataViewTableresolves through./src/useDataViewTable.ts.
Local Commands
bun run dev— contractspec-bun-build devbun run build— bun run prebuild && bun run build:bundle && bun run build:typesbun run lint— bun run lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsc --noEmit -p tsconfig.jsonbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rimraf dist .turbobun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun 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.
