Skip to content

Commit d479f7d

Browse files
committed
πŸ’„ style(rn): Update peer deps & docs
1 parent de7f342 commit d479f7d

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

β€Žpackages/react-native/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,19 @@ yarn add @lobehub/icons-rn
4343
# or
4444
pnpm add @lobehub/icons-rn
4545
```
46+
47+
### Peer Dependencies
48+
49+
This package requires the following peer dependencies:
50+
51+
```bash
52+
npm install react-native-svg
53+
# or
54+
yarn add react-native-svg
55+
# or
56+
pnpm add react-native-svg
57+
```
58+
4659
#### Optional: Gradient Support
4760

4861
For gradient background support in Avatar components, install `react-native-linear-gradient`:

β€Žpackages/react-native/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@
4545
"test:watch": "vitest --watch",
4646
"type-check": "tsc --noEmit"
4747
},
48-
"dependencies": {
49-
"react-native-svg": "^15.12.0"
50-
},
5148
"devDependencies": {
49+
"react-native-svg": "^15.12.0",
5250
"@types/react": "^19.0.0",
5351
"@types/react-native": "^0.72.0",
5452
"clean-package": "^2.2.0",
@@ -58,7 +56,8 @@
5856
"peerDependencies": {
5957
"react": ">=16.8.0",
6058
"react-native": ">=0.76.9",
61-
"react-native-linear-gradient": ">=2.8.0"
59+
"react-native-linear-gradient": ">=2.8.0",
60+
"react-native-svg": ">=15.8.0"
6261
},
6362
"publishConfig": {
6463
"access": "public",

0 commit comments

Comments
Β (0)