Skip to content

Commit 77d5ce5

Browse files
committed
chore: use resolutions to handle chat sdk version
1 parent 4c83094 commit 77d5ce5

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ If you need any help in resolving any issues or have questions, visit [our commu
3232
- XCode
3333
- Android Studio
3434

35-
> More details, please see https://reactnative.dev/docs/environment-setup
36-
> <br/>*_we strongly recommend installing yarn using [corepack](https://nodejs.org/dist/latest/docs/api/corepack.html)_
35+
More details, please see https://reactnative.dev/docs/environment-setup <br/>
36+
_we strongly recommend installing yarn using [corepack](https://nodejs.org/dist/latest/docs/api/corepack.html)_
3737

3838
<br/>
3939

@@ -83,6 +83,9 @@ If you would like to try the sample app specifically fit to your usage, you can
8383

8484
<br />
8585

86+
> **Note** Update Chat SDK version of sample app <br/>
87+
> Edit `package.json` and change the version of `resolutions > @sendbird/chat` to the version you want to use.
88+
8689
## Development
8790

8891
We tried development on macOS / Linux systems. You might encounter problems in running sample or scripts like `yarn build` in Windows machines.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,8 @@
9292
"!**/__mocks__/**",
9393
"!**/__fixtures__/**"
9494
]
95+
},
96+
"resolutions": {
97+
"@sendbird/chat": "4.6.2"
9598
}
9699
}

sample/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@react-navigation/bottom-tabs": "^6.2.0",
2929
"@react-navigation/native": "^6.0.6",
3030
"@react-navigation/native-stack": "^6.7.0",
31-
"@sendbird/chat": "^4.7.0",
31+
"@sendbird/chat": "^4.3.0",
3232
"@storybook/addon-actions": "^6.4.19",
3333
"@storybook/addon-controls": "^6.4.19",
3434
"@storybook/addon-ondevice-actions": "^6.0.1-alpha.7",

yarn.lock

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3278,15 +3278,10 @@
32783278
dependencies:
32793279
nanoid "^3.1.23"
32803280

3281-
"@sendbird/chat@^4.3.0", "@sendbird/chat@^4.7.0":
3282-
version "4.7.0"
3283-
resolved "https://registry.yarnpkg.com/@sendbird/chat/-/chat-4.7.0.tgz#58c8cb18be7f05b2b9acc38c2fcb6d38375e3fbc"
3284-
integrity sha512-WOzHAyAO+bYEW6Pb6cg0lO8o0Vj/v0rBE01XO8C+7+Fxq8mPcapg7TSjntoocbByXU8f6JPWEKcFRTV2ldzi5w==
3285-
3286-
"@sendbird/react-native-scrollview-enhancer@^0.1.0-beta.0":
3287-
version "0.1.0-beta.0"
3288-
resolved "https://registry.yarnpkg.com/@sendbird/react-native-scrollview-enhancer/-/react-native-scrollview-enhancer-0.1.0-beta.0.tgz#69001ba1b36093b9bd5fd0a6d3f8998bb9876fb0"
3289-
integrity sha512-d4Y6k7htSiUI3ECB0A6KM/uSE/dWBj+p+hQlFlcVptcDSNUuUg0J8j0j4odt+1f63bYOxyDnmRJCWaY0Ys/2Tw==
3281+
"@sendbird/[email protected]", "@sendbird/chat@^4.3.0":
3282+
version "4.6.2"
3283+
resolved "https://registry.yarnpkg.com/@sendbird/chat/-/chat-4.6.2.tgz#a10630692d4d19db4fda5ec8192ad48a9a9ab88f"
3284+
integrity sha512-ItUTjPt7NBu0ZkxE+WUpKSKBF5uVFRnPNhnXGmOvKAWSRF+8Pi8N8Jq7dMErl7W/vXAIa28ulLZaq52lXcXVBw==
32903285

32913286
"@sideway/address@^4.1.3":
32923287
version "4.1.4"

0 commit comments

Comments
 (0)