@boostdev/design-system-react-native 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # @boostdev/design-system-react-native
2
+
3
+ BoostDev React Native component library: accessible, token-driven components built on `@boostdev/design-system-foundation`.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @boostdev/design-system-react-native
9
+ # or
10
+ pnpm add @boostdev/design-system-react-native
11
+ ```
12
+
13
+ Peer dependencies:
14
+
15
+ - `react` >= 18
16
+ - `react-native` >= 0.70
17
+ - `@boostdev/design-system-foundation` >= 2.0.0
18
+
19
+ ## Usage
20
+
21
+ ```tsx
22
+ import { ThemeProvider, Button, Typography } from '@boostdev/design-system-react-native';
23
+
24
+ export default function App() {
25
+ return (
26
+ <ThemeProvider>
27
+ <Typography>Hello</Typography>
28
+ <Button onPress={() => {}}>Press me</Button>
29
+ </ThemeProvider>
30
+ );
31
+ }
32
+ ```
33
+
34
+ Wrap your app in `ThemeProvider`. It auto-detects system color scheme (light/dark) via `useColorScheme`, or you can pass `colorScheme="light" | "dark"` to force one.
35
+
36
+ ## Development
37
+
38
+ ```bash
39
+ pnpm install
40
+ pnpm build # tsup → dist/
41
+ pnpm typecheck # tsc --noEmit
42
+ pnpm test # vitest (uses react-native-web alias)
43
+ ```
44
+
45
+ ## License
46
+
47
+ ISC © Boostdev