@servicetitan/carto-rn-kit
v0.1.1
Published
Carto React Native component kit
Readme
@servicetitan/carto-rn-kit
Carto's React Native component kit — the native counterpart to
@servicetitan/carto-react-kit. Same component APIs where
they make sense on native; React Native primitives (Pressable, View, Text)
and native accessibility in place of the web kit's DOM + React Aria + CSS.
Status: Phase 0 walking skeleton. Only
Buttonis implemented, and it carries plain style values (not yet wired to@servicetitan/carto-tokens). The package exists to prove the end-to-end pipeline — build, test, and stories on both web and device — before the full component surface is ported.
Install
pnpm add @servicetitan/carto-rn-kit react-native react-native-svgreact and react-native are peer dependencies.
Usage
import { Button } from "@servicetitan/carto-rn-kit";
<Button label="Save" variant="primary" onPress={save} />;Development
pnpm build—react-native-builder-bobemits CommonJS, ESM, and type declarations todist/. Metro consumers resolve raw TypeScript source via thesource/react-nativepackage fields.pnpm test— unit tests run throughreact-native-webunder Vitest.pnpm typecheck/pnpm lint—tscand Biome.pnpm storybook— the web (react-native-web + Vite) Storybook on port 6008.- On-device Storybook lives in
apps/carto-rn-device-storybookand consumes the same stories.
