Skip to content

Commit

Permalink
fix: add an extra step after yarn link for the RN setup (#1341)
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic authored Aug 21, 2024
1 parent f7407da commit 47fe71c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,26 @@ yarn start
Open `metro.config.js` file and set value for watchFolders as

```javascript
const streamChatRoot = '{{CHANGE_TO_THE_PATH_TO_YOUR_PROJECT}}/stream-chat-js'

module.exports = {
// the rest of the metro config goes here
...
watchFolders: [projectRoot].concat(alternateRoots).concat(['{{CHANGE_TO_THE_PATH_TO_YOUR_PROJECT}}/stream-chat-js'])
watchFolders: [projectRoot].concat(alternateRoots).concat([streamChatRoot]),
resolver: {
// the other resolver configurations go here
...
extraNodeModules: {
// the other extra node modules go here
...
'stream-chat': streamChatRoot
}
}
};
```

Make sure to replace `{{CHANGE_TO_THE_PATH_TO_YOUR_PROJECT}}` with the correct path for stream-chat-js folder as per your directory structure
Make sure to replace `{{CHANGE_TO_THE_PATH_TO_YOUR_PROJECT}}` with the correct path for the `stream-chat-js` folder as per your directory structure.

Run in the root of this repo

```shell
Expand Down

0 comments on commit 47fe71c

Please sign in to comment.