Skip to content

Commit

Permalink
Update React SDK install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Mar 19, 2024
1 parent 64df3ee commit 42fbf19
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions packages/react-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,24 @@ These hooks are mostly bindings to the [`xmtp-js` SDK](https://github.com/xmtp

## Install

The XMTP React SDK requires React, the XMTP JS SDK, and several content types.

**NPM**

```bash
npm install react @xmtp/react-sdk @xmtp/xmtp-js @xmtp/content-type-reaction @xmtp/content-type-remote-attachment @xmtp/content-type-reply
```

**PNPM**

```bash
# npm
npm install @xmtp/react-sdk
pnpm install react @xmtp/react-sdk @xmtp/xmtp-js @xmtp/content-type-reaction @xmtp/content-type-remote-attachment @xmtp/content-type-reply
```

# pnpm
pnpm install @xmtp/react-sdk
**Yarn**

# yarn
yarn add @xmtp/react-sdk
```bash
yarn add react @xmtp/react-sdk @xmtp/xmtp-js @xmtp/content-type-reaction @xmtp/content-type-remote-attachment @xmtp/content-type-reply
```

### Buffer polyfill
Expand Down

0 comments on commit 42fbf19

Please sign in to comment.