@campxdev/react-native-blueprint 0.1.2 → 0.1.4
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 +98 -69
- package/lib/module/app/_layout.js +7 -1
- package/lib/module/app/_layout.js.map +1 -1
- package/package.json +10 -7
- package/src/app/_layout.tsx +7 -1
- package/src/global.css +417 -0
- package/lib/typescript/src/app/_layout.d.ts +0 -8
- package/lib/typescript/src/app/_layout.d.ts.map +0 -1
- package/lib/typescript/src/components/theme-config.d.ts +0 -174
- package/lib/typescript/src/components/theme-config.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Accordion.d.ts +0 -103
- package/lib/typescript/src/components/ui/Accordion.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Alert-Dialog.d.ts +0 -168
- package/lib/typescript/src/components/ui/Alert-Dialog.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Alert.d.ts +0 -60
- package/lib/typescript/src/components/ui/Alert.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/AppBar.d.ts +0 -227
- package/lib/typescript/src/components/ui/AppBar.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Aspect-Ratio.d.ts +0 -30
- package/lib/typescript/src/components/ui/Aspect-Ratio.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Avatar.d.ts +0 -1351
- package/lib/typescript/src/components/ui/Avatar.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Badge.d.ts +0 -204
- package/lib/typescript/src/components/ui/Badge.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Bottom-Sheet.d.ts +0 -43
- package/lib/typescript/src/components/ui/Bottom-Sheet.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Button.d.ts +0 -176
- package/lib/typescript/src/components/ui/Button.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Card.d.ts +0 -854
- package/lib/typescript/src/components/ui/Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Checkbox.d.ts +0 -36
- package/lib/typescript/src/components/ui/Checkbox.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Collapsible.d.ts +0 -66
- package/lib/typescript/src/components/ui/Collapsible.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Context-Menu.d.ts +0 -150
- package/lib/typescript/src/components/ui/Context-Menu.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Custom-Card.d.ts +0 -864
- package/lib/typescript/src/components/ui/Custom-Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Dialog.d.ts +0 -126
- package/lib/typescript/src/components/ui/Dialog.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts +0 -284
- package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Floating-Action.d.ts +0 -44
- package/lib/typescript/src/components/ui/Floating-Action.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Greeting-Card.d.ts +0 -153
- package/lib/typescript/src/components/ui/Greeting-Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Hover-Card.d.ts +0 -68
- package/lib/typescript/src/components/ui/Hover-Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Icon.d.ts +0 -43
- package/lib/typescript/src/components/ui/Icon.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Input.d.ts +0 -52
- package/lib/typescript/src/components/ui/Input.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Label.d.ts +0 -105
- package/lib/typescript/src/components/ui/Label.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Menubar.d.ts +0 -175
- package/lib/typescript/src/components/ui/Menubar.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts +0 -26
- package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/NavBar.d.ts +0 -273
- package/lib/typescript/src/components/ui/NavBar.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Popover.d.ts +0 -71
- package/lib/typescript/src/components/ui/Popover.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Progress.d.ts +0 -27
- package/lib/typescript/src/components/ui/Progress.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Radio-Group.d.ts +0 -47
- package/lib/typescript/src/components/ui/Radio-Group.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Select.d.ts +0 -107
- package/lib/typescript/src/components/ui/Select.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Separator.d.ts +0 -166
- package/lib/typescript/src/components/ui/Separator.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/SizedBox.d.ts +0 -79
- package/lib/typescript/src/components/ui/SizedBox.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Skeleton.d.ts +0 -40
- package/lib/typescript/src/components/ui/Skeleton.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Slider.d.ts +0 -55
- package/lib/typescript/src/components/ui/Slider.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Switch.d.ts +0 -34
- package/lib/typescript/src/components/ui/Switch.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Table.d.ts +0 -70
- package/lib/typescript/src/components/ui/Table.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Tabs.d.ts +0 -51
- package/lib/typescript/src/components/ui/Tabs.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Text.d.ts +0 -116
- package/lib/typescript/src/components/ui/Text.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Textarea.d.ts +0 -61
- package/lib/typescript/src/components/ui/Textarea.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Theme-Toggle.d.ts +0 -194
- package/lib/typescript/src/components/ui/Theme-Toggle.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Toast.d.ts +0 -55
- package/lib/typescript/src/components/ui/Toast.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Toggle-Group.d.ts +0 -49
- package/lib/typescript/src/components/ui/Toggle-Group.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Toggle.d.ts +0 -53
- package/lib/typescript/src/components/ui/Toggle.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Tooltip.d.ts +0 -71
- package/lib/typescript/src/components/ui/Tooltip.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/index.d.ts +0 -44
- package/lib/typescript/src/components/ui/index.d.ts.map +0 -1
- package/lib/typescript/src/index.d.ts +0 -9
- package/lib/typescript/src/index.d.ts.map +0 -1
- package/lib/typescript/src/lib/ThemeProvider.d.ts +0 -137
- package/lib/typescript/src/lib/ThemeProvider.d.ts.map +0 -1
- package/lib/typescript/src/lib/cornerRadius.d.ts +0 -112
- package/lib/typescript/src/lib/cornerRadius.d.ts.map +0 -1
- package/lib/typescript/src/lib/fonts.d.ts +0 -21
- package/lib/typescript/src/lib/fonts.d.ts.map +0 -1
- package/lib/typescript/src/lib/theme.d.ts +0 -87
- package/lib/typescript/src/lib/theme.d.ts.map +0 -1
- package/lib/typescript/src/lib/utils.d.ts +0 -111
- package/lib/typescript/src/lib/utils.d.ts.map +0 -1
- /package/{global.css → lib/module/global.css} +0 -0
package/README.md
CHANGED
|
@@ -13,25 +13,39 @@ A production-ready React Native UI component library built with NativeWind (Tail
|
|
|
13
13
|
- 🔧 **Customizable** - Easy to theme and extend with Tailwind utilities
|
|
14
14
|
- ⚡ **Performant** - Built on React Native Reanimated for smooth animations
|
|
15
15
|
|
|
16
|
+
## ⚠️ Prerequisites
|
|
17
|
+
|
|
18
|
+
This library requires **NativeWind v4+** to be configured in your React Native project. NativeWind provides Tailwind CSS styling for React Native.
|
|
19
|
+
|
|
20
|
+
**Not using NativeWind?** This library is designed specifically for NativeWind-based projects. If you're not using NativeWind, you'll need to configure it first or consider an alternative component library.
|
|
21
|
+
|
|
16
22
|
## Installation
|
|
17
23
|
|
|
24
|
+
### 1. Install the package
|
|
25
|
+
|
|
18
26
|
```sh
|
|
19
|
-
npm install react-native-blueprint
|
|
27
|
+
npm install @campxdev/react-native-blueprint
|
|
20
28
|
# or
|
|
21
|
-
yarn add react-native-blueprint
|
|
29
|
+
yarn add @campxdev/react-native-blueprint
|
|
22
30
|
```
|
|
23
31
|
|
|
24
|
-
###
|
|
25
|
-
|
|
26
|
-
This library requires the following peer dependencies:
|
|
32
|
+
### 2. Install required peer dependencies
|
|
27
33
|
|
|
28
34
|
```sh
|
|
29
|
-
npm install
|
|
35
|
+
npm install nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context
|
|
36
|
+
# or
|
|
37
|
+
yarn add nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context
|
|
30
38
|
```
|
|
31
39
|
|
|
32
|
-
###
|
|
40
|
+
### 3. Import the global styles
|
|
41
|
+
|
|
42
|
+
In your app entry point (e.g., `App.tsx` or `_layout.tsx`):
|
|
33
43
|
|
|
34
|
-
|
|
44
|
+
```tsx
|
|
45
|
+
import '@campxdev/react-native-blueprint/global.css';
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### 4. Configure NativeWind
|
|
35
49
|
|
|
36
50
|
Create or update `tailwind.config.js`:
|
|
37
51
|
|
|
@@ -42,7 +56,7 @@ module.exports = {
|
|
|
42
56
|
darkMode: 'class',
|
|
43
57
|
content: [
|
|
44
58
|
'./src/**/*.{ts,tsx}',
|
|
45
|
-
'./node_modules/react-native-blueprint/src/**/*.{ts,tsx}',
|
|
59
|
+
'./node_modules/@campxdev/react-native-blueprint/src/**/*.{ts,tsx}',
|
|
46
60
|
],
|
|
47
61
|
presets: [require('nativewind/preset')],
|
|
48
62
|
theme: {
|
|
@@ -91,64 +105,7 @@ module.exports = {
|
|
|
91
105
|
};
|
|
92
106
|
```
|
|
93
107
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
Create `global.css` and import the theme:
|
|
97
|
-
|
|
98
|
-
```css
|
|
99
|
-
@tailwind base;
|
|
100
|
-
@tailwind components;
|
|
101
|
-
@tailwind utilities;
|
|
102
|
-
|
|
103
|
-
@layer base {
|
|
104
|
-
:root {
|
|
105
|
-
--background: 0 0% 100%;
|
|
106
|
-
--foreground: 240 10% 3.9%;
|
|
107
|
-
--card: 0 0% 100%;
|
|
108
|
-
--card-foreground: 240 10% 3.9%;
|
|
109
|
-
--popover: 0 0% 100%;
|
|
110
|
-
--popover-foreground: 240 10% 3.9%;
|
|
111
|
-
--primary: 240 5.9% 10%;
|
|
112
|
-
--primary-foreground: 0 0% 98%;
|
|
113
|
-
--secondary: 240 4.8% 95.9%;
|
|
114
|
-
--secondary-foreground: 240 5.9% 10%;
|
|
115
|
-
--muted: 240 4.8% 95.9%;
|
|
116
|
-
--muted-foreground: 240 3.8% 46.1%;
|
|
117
|
-
--accent: 240 4.8% 95.9%;
|
|
118
|
-
--accent-foreground: 240 5.9% 10%;
|
|
119
|
-
--destructive: 0 84.2% 60.2%;
|
|
120
|
-
--destructive-foreground: 0 0% 98%;
|
|
121
|
-
--border: 240 5.9% 90%;
|
|
122
|
-
--input: 240 5.9% 90%;
|
|
123
|
-
--ring: 240 5.9% 10%;
|
|
124
|
-
--radius: 0.5rem;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.dark {
|
|
128
|
-
--background: 240 10% 3.9%;
|
|
129
|
-
--foreground: 0 0% 98%;
|
|
130
|
-
--card: 240 10% 3.9%;
|
|
131
|
-
--card-foreground: 0 0% 98%;
|
|
132
|
-
--popover: 240 10% 3.9%;
|
|
133
|
-
--popover-foreground: 0 0% 98%;
|
|
134
|
-
--primary: 0 0% 98%;
|
|
135
|
-
--primary-foreground: 240 5.9% 10%;
|
|
136
|
-
--secondary: 240 3.7% 15.9%;
|
|
137
|
-
--secondary-foreground: 0 0% 98%;
|
|
138
|
-
--muted: 240 3.7% 15.9%;
|
|
139
|
-
--muted-foreground: 240 5% 64.9%;
|
|
140
|
-
--accent: 240 3.7% 15.9%;
|
|
141
|
-
--accent-foreground: 0 0% 98%;
|
|
142
|
-
--destructive: 0 62.8% 30.6%;
|
|
143
|
-
--destructive-foreground: 0 0% 98%;
|
|
144
|
-
--border: 240 3.7% 15.9%;
|
|
145
|
-
--input: 240 3.7% 15.9%;
|
|
146
|
-
--ring: 240 4.9% 83.9%;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
3. **Configure Metro:**
|
|
108
|
+
### 5. Configure Metro
|
|
152
109
|
|
|
153
110
|
Update `metro.config.js`:
|
|
154
111
|
|
|
@@ -166,7 +123,10 @@ module.exports = withNativeWind(config, { input: './global.css' });
|
|
|
166
123
|
### Basic Example
|
|
167
124
|
|
|
168
125
|
```tsx
|
|
169
|
-
|
|
126
|
+
// Import CSS at the top of your app entry point (do this ONCE)
|
|
127
|
+
import '@campxdev/react-native-blueprint/global.css';
|
|
128
|
+
|
|
129
|
+
import { Button, Card, Text, Input, Alert } from '@campxdev/react-native-blueprint';
|
|
170
130
|
import { View } from 'react-native';
|
|
171
131
|
|
|
172
132
|
function App() {
|
|
@@ -295,9 +255,78 @@ npm run android # Run on Android emulator
|
|
|
295
255
|
All components are fully typed with TypeScript. Import types as needed:
|
|
296
256
|
|
|
297
257
|
```tsx
|
|
298
|
-
import type { ButtonProps, CardProps } from 'react-native-blueprint';
|
|
258
|
+
import type { ButtonProps, CardProps } from '@campxdev/react-native-blueprint';
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
## Troubleshooting
|
|
262
|
+
|
|
263
|
+
### "Cannot find module '@campxdev/react-native-blueprint/global.css'"
|
|
264
|
+
|
|
265
|
+
Make sure you've:
|
|
266
|
+
1. Installed NativeWind: `npm install nativewind tailwindcss`
|
|
267
|
+
2. Configured Metro with NativeWind plugin (see Installation Step 5)
|
|
268
|
+
3. Imported the CSS in your app entry point
|
|
269
|
+
|
|
270
|
+
### "CSS import is not supported"
|
|
271
|
+
|
|
272
|
+
Your Metro bundler needs the NativeWind plugin. Update `metro.config.js`:
|
|
273
|
+
|
|
274
|
+
```js
|
|
275
|
+
const { getDefaultConfig } = require('expo/metro-config');
|
|
276
|
+
const { withNativeWind } = require('nativewind/metro');
|
|
277
|
+
|
|
278
|
+
const config = getDefaultConfig(__dirname);
|
|
279
|
+
|
|
280
|
+
module.exports = withNativeWind(config, { input: './global.css' });
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
### Components not styling correctly
|
|
284
|
+
|
|
285
|
+
Ensure your `tailwind.config.js` includes the package path in the content array:
|
|
286
|
+
|
|
287
|
+
```js
|
|
288
|
+
content: [
|
|
289
|
+
'./src/**/*.{ts,tsx}',
|
|
290
|
+
'./node_modules/@campxdev/react-native-blueprint/src/**/*.{ts,tsx}',
|
|
291
|
+
],
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
## Migration from v0.1.x to v0.2.x
|
|
295
|
+
|
|
296
|
+
**Breaking Change**: CSS must now be manually imported.
|
|
297
|
+
|
|
298
|
+
### What changed?
|
|
299
|
+
|
|
300
|
+
In v0.1.x, the CSS was automatically imported when you used `RootLayout`. In v0.2.x, you need to explicitly import the CSS file.
|
|
301
|
+
|
|
302
|
+
### Migration steps
|
|
303
|
+
|
|
304
|
+
1. **Add CSS import** to your app entry point (e.g., `App.tsx` or `_layout.tsx`):
|
|
305
|
+
|
|
306
|
+
```tsx
|
|
307
|
+
import '@campxdev/react-native-blueprint/global.css';
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
2. **Install peer dependencies** (if not already installed):
|
|
311
|
+
|
|
312
|
+
```sh
|
|
313
|
+
npm install nativewind tailwindcss tailwindcss-animate
|
|
314
|
+
# or
|
|
315
|
+
yarn add nativewind tailwindcss tailwindcss-animate
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
3. **Update imports** (if using the old package name):
|
|
319
|
+
|
|
320
|
+
```tsx
|
|
321
|
+
// Old
|
|
322
|
+
import { Button } from 'react-native-blueprint';
|
|
323
|
+
|
|
324
|
+
// New
|
|
325
|
+
import { Button } from '@campxdev/react-native-blueprint';
|
|
299
326
|
```
|
|
300
327
|
|
|
328
|
+
That's it! Your app should work as before.
|
|
329
|
+
|
|
301
330
|
## Contributing
|
|
302
331
|
|
|
303
332
|
Contributions are welcome! Please follow these steps:
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* RootLayout component - provides theme and navigation setup
|
|
5
|
+
*
|
|
6
|
+
* NOTE: CSS import intentionally removed for library export.
|
|
7
|
+
* Consumers must import '@campxdev/react-native-blueprint/global.css'
|
|
8
|
+
* in their app entry point.
|
|
9
|
+
*/
|
|
4
10
|
import { PortalHost } from '@rn-primitives/portal';
|
|
5
11
|
import { StatusBar } from 'react-native';
|
|
6
12
|
import { NAV_THEME } from "../lib/theme.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PortalHost","StatusBar","NAV_THEME","ThemeProvider","useColorScheme","jsx","_jsx","jsxs","_jsxs","RootLayout","children","colorScheme","value","barStyle"],"sourceRoot":"../../../src","sources":["app/_layout.tsx"],"mappings":";;AAAA
|
|
1
|
+
{"version":3,"names":["PortalHost","StatusBar","NAV_THEME","ThemeProvider","useColorScheme","jsx","_jsx","jsxs","_jsxs","RootLayout","children","colorScheme","value","barStyle"],"sourceRoot":"../../../src","sources":["app/_layout.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,uBAAuB;AAClD,SAASC,SAAS,QAAQ,cAAc;AACxC,SAASC,SAAS,QAAQ,iBAAc;AACxC,SAASC,aAAa,QAAQ,0BAA0B;AACxD,SAASC,cAAc,QAAQ,YAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAO5C,eAAe,SAASC,UAAUA,CAAC;EAAEC;AAA0B,CAAC,EAAE;EAChE,MAAM;IAAEC;EAAY,CAAC,GAAGP,cAAc,CAAC,CAAC;EAExC,oBACEI,KAAA,CAACL,aAAa;IAACS,KAAK,EAAEV,SAAS,CAACS,WAAW,IAAI,OAAO,CAAE;IAAAD,QAAA,gBACtDJ,IAAA,CAACL,SAAS;MACRY,QAAQ,EAAEF,WAAW,KAAK,MAAM,GAAG,eAAe,GAAG;IAAe,CACrE,CAAC,EACDD,QAAQ,eACTJ,IAAA,CAACN,UAAU,IAAE,CAAC;EAAA,CACD,CAAC;AAEpB","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@campxdev/react-native-blueprint",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "This is a react-native package for mobile apps",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"types": "./lib/typescript/src/index.d.ts",
|
|
11
11
|
"default": "./lib/module/index.js"
|
|
12
12
|
},
|
|
13
|
+
"./global.css": "./src/global.css",
|
|
13
14
|
"./package.json": "./package.json"
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
@@ -20,7 +21,6 @@
|
|
|
20
21
|
"cpp",
|
|
21
22
|
"*.podspec",
|
|
22
23
|
"react-native.config.js",
|
|
23
|
-
"global.css",
|
|
24
24
|
"!ios/build",
|
|
25
25
|
"!android/build",
|
|
26
26
|
"!android/gradle",
|
|
@@ -78,17 +78,22 @@
|
|
|
78
78
|
"eslint-config-prettier": "^10.1.8",
|
|
79
79
|
"eslint-plugin-prettier": "^5.5.4",
|
|
80
80
|
"jest": "^29.7.0",
|
|
81
|
+
"nativewind": "^4.2.1",
|
|
81
82
|
"prettier": "^3.6.2",
|
|
82
83
|
"react": "19.1.0",
|
|
83
84
|
"react-native": "0.81.4",
|
|
84
85
|
"react-native-builder-bob": "^0.40.13",
|
|
85
86
|
"release-it": "^19.0.4",
|
|
86
87
|
"tailwindcss": "^3.4.17",
|
|
88
|
+
"tailwindcss-animate": "^1.0.7",
|
|
87
89
|
"typescript": "^5.9.2"
|
|
88
90
|
},
|
|
89
91
|
"peerDependencies": {
|
|
92
|
+
"nativewind": "^4.0.0",
|
|
90
93
|
"react": "*",
|
|
91
|
-
"react-native": "*"
|
|
94
|
+
"react-native": "*",
|
|
95
|
+
"tailwindcss": "^3.4.0",
|
|
96
|
+
"tailwindcss-animate": "^1.0.0"
|
|
92
97
|
},
|
|
93
98
|
"workspaces": [
|
|
94
99
|
"example"
|
|
@@ -185,8 +190,7 @@
|
|
|
185
190
|
"expo": "^54.0.12",
|
|
186
191
|
"expo-font": "^14.0.9",
|
|
187
192
|
"figma-squircle": "^1.1.0",
|
|
188
|
-
"lucide-react-native": "^0.
|
|
189
|
-
"nativewind": "^4.2.1",
|
|
193
|
+
"lucide-react-native": "^0.546.0",
|
|
190
194
|
"react-native-figma-squircle": "^0.4.0",
|
|
191
195
|
"react-native-floating-action": "^1.22.0",
|
|
192
196
|
"react-native-gesture-handler": "^2.28.0",
|
|
@@ -195,7 +199,6 @@
|
|
|
195
199
|
"react-native-screens": "^4.7.1",
|
|
196
200
|
"react-native-svg": "^15.14.0",
|
|
197
201
|
"react-native-worklets": "0.5.1",
|
|
198
|
-
"tailwind-merge": "^3.3.1"
|
|
199
|
-
"tailwindcss-animate": "^1.0.7"
|
|
202
|
+
"tailwind-merge": "^3.3.1"
|
|
200
203
|
}
|
|
201
204
|
}
|
package/src/app/_layout.tsx
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* RootLayout component - provides theme and navigation setup
|
|
3
|
+
*
|
|
4
|
+
* NOTE: CSS import intentionally removed for library export.
|
|
5
|
+
* Consumers must import '@campxdev/react-native-blueprint/global.css'
|
|
6
|
+
* in their app entry point.
|
|
7
|
+
*/
|
|
2
8
|
import { PortalHost } from '@rn-primitives/portal';
|
|
3
9
|
import { StatusBar } from 'react-native';
|
|
4
10
|
import { NAV_THEME } from '../lib/theme';
|