Skip to content

Commit 62524c2

Browse files
authored
chore(📚): add note about postinstall scripts for bun and pnpm (#3477)
1 parent b42e4f7 commit 62524c2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

‎apps/docs/docs/getting-started/installation.md‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,21 @@ For `react-native@<=0.78` and `react@<=18`, you need to use `@shopify/react-nati
1717

1818
tvOS, macOS, and macOS Catalyst are also supported platforms.
1919

20-
**Install the library using yarn:**
21-
2220
```sh
2321
yarn add @shopify/react-native-skia
22+
# or
23+
npm install @shopify/react-native-skia
2424
```
2525

26-
**Or using npm:**
26+
27+
If you're using **bun** or **pnpm**, you'll need to trust the package for the postinstall script to run:
2728

2829
```sh
29-
npm install @shopify/react-native-skia
30+
# bun
31+
bun add --trust @shopify/react-native-skia
32+
33+
# pnpm (v10+)
34+
pnpm add --allow-build=@shopify/react-native-skia @shopify/react-native-skia
3035
```
3136

3237
### Bundle Size

0 commit comments

Comments
 (0)