Skip to content

Commit 940823e

Browse files
authored
Merge pull request #275 from sendbird/feat/migrate-rn-version-to-sample
chore: update React Native version from 0.74 to 0.82
2 parents 8039071 + 4efbe50 commit 940823e

File tree

49 files changed

+5395
-6011
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+5395
-6011
lines changed

.github/workflows/publish-sample.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Setup Node.js
3535
uses: actions/setup-node@v4
3636
with:
37-
node-version: '18'
37+
node-version: '20'
3838
cache: 'yarn'
3939

4040
- name: Setup Ruby
@@ -98,7 +98,7 @@ jobs:
9898
- name: Setup Node.js
9999
uses: actions/setup-node@v4
100100
with:
101-
node-version: '18'
101+
node-version: '20'
102102
cache: 'yarn'
103103

104104
- name: Setup Java
@@ -115,7 +115,7 @@ jobs:
115115
env:
116116
BUNDLE_GEMFILE: ${{ github.workspace }}/sample/android/Gemfile
117117
with:
118-
ruby-version: '2.7.6'
118+
ruby-version: '3.1'
119119
bundler-cache: true
120120

121121
- name: Get yarn lockfile hash

babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: ['module:metro-react-native-babel-preset'],
3-
};
2+
presets: ['module:@react-native/babel-preset'],
3+
};

docs-validation/1_introduction/SendYourFirstMessage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ export const platformServices: SendbirdUIKitContainerProps['platformServices'] =
6161
* {@link https://sendbird.com/docs/chat/uikit/v3/react-native/introduction/send-first-message#2-get-started-3-step-5-wrap-your-app-in-sendbirduikitcontainer}
6262
* */
6363
import { SendbirdUIKitContainer } from '@sendbird/uikit-react-native';
64-
import { MMKV } from 'react-native-mmkv';
64+
import { createMMKV } from 'react-native-mmkv';
6565

66-
const mmkv = new MMKV();
66+
const mmkv = createMMKV();
6767

6868
const App = () => {
6969
return (

docs-validation/package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,40 +12,40 @@
1212
"@react-native-camera-roll/camera-roll": "^7.8.1",
1313
"@react-native-clipboard/clipboard": "^1.14.1",
1414
"@react-native-documents/picker": "^10.1.0",
15-
"@react-native-firebase/messaging": "^14.7.0",
15+
"@react-native-firebase/messaging": "^19.3.0",
1616
"@react-navigation/native": "^6.1.17",
1717
"@react-navigation/native-stack": "^6.10.0",
18-
"@sendbird/chat": "^4.19.2",
18+
"@sendbird/chat": "^4.20.2",
1919
"date-fns": "^4.1.0",
20-
"react": "18.2.0",
21-
"react-native": "0.74.3",
20+
"react": "19.1.1",
21+
"react-native": "0.82.1",
2222
"react-native-create-thumbnail": "^2.0.0",
2323
"react-native-file-access": "^3.1.0",
24-
"react-native-image-picker": "^7.1.2",
25-
"react-native-mmkv": "^2.12.2",
26-
"react-native-nitro-modules": "^0.29.4",
27-
"react-native-nitro-sound": "^0.2.0",
28-
"react-native-permissions": "^3.10.1",
29-
"react-native-safe-area-context": "^4.10.8",
24+
"react-native-image-picker": "^8.2.0",
25+
"react-native-mmkv": "^4.0.0",
26+
"react-native-nitro-modules": "^0.31.5",
27+
"react-native-nitro-sound": "^0.2.9",
28+
"react-native-permissions": "^5.3.0",
29+
"react-native-safe-area-context": "^5.5.2",
3030
"react-native-video": "^6.3.0"
3131
},
3232
"devDependencies": {
33-
"@babel/core": "^7.12.9",
34-
"@babel/runtime": "^7.12.5",
33+
"@babel/core": "^7.25.2",
34+
"@babel/preset-env": "^7.25.3",
35+
"@babel/runtime": "^7.25.0",
3536
"@react-native-community/eslint-config": "^2.0.0",
36-
"@types/jest": "^26.0.23",
37+
"@types/jest": "^29.4.0",
3738
"@types/react": "*",
3839
"@types/react-native": "*",
39-
"@typescript-eslint/eslint-plugin": "^5.7.0",
40-
"@typescript-eslint/parser": "^5.7.0",
41-
"babel-jest": "^26.6.3",
40+
"@typescript-eslint/eslint-plugin": "^6.9.1",
41+
"@typescript-eslint/parser": "^6.9.1",
42+
"babel-jest": "^29.4.3",
4243
"babel-loader": "^8.2.3",
43-
"eslint": "^7.14.0",
44-
"jest": "^26.6.3",
45-
"metro-react-native-babel-preset": "^0.66.2",
46-
"react-dom": "17.0.2",
47-
"react-native-monorepo-tools": "^1.1.4",
48-
"react-test-renderer": "18.3.1",
49-
"typescript": "5.2.2"
44+
"eslint": "^8.52.0",
45+
"jest": "^29.4.3",
46+
"@react-native/babel-preset": "0.82.1",
47+
"react-dom": "18.2.0",
48+
"react-test-renderer": "19.1.1",
49+
"typescript": "5.8.3"
5050
}
5151
}

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@
5757
"patch-package": "^6.4.7",
5858
"postinstall-postinstall": "^2.1.0",
5959
"prettier": "^2.8.8",
60-
"react": "18.2.0",
61-
"react-native": "0.74.3",
62-
"react-native-builder-bob": "^0.18.2",
60+
"react": "19.1.1",
61+
"react-native": "0.82.1",
62+
"react-native-builder-bob": "^0.18.0",
6363
"react-native-fast-image": "^8.6.3",
64-
"react-native-safe-area-context": "^4.10.8",
65-
"react-test-renderer": "^18.3.1",
64+
"react-native-safe-area-context": "^5.5.2",
65+
"react-test-renderer": "19.1.1",
6666
"typedoc": "^0.25.3",
67-
"typescript": "5.2.2",
67+
"typescript": "5.8.3",
6868
"yalc": "^1.0.0-pre.53"
6969
},
7070
"jest": {
@@ -98,7 +98,7 @@
9898
]
9999
},
100100
"resolutions": {
101-
"@sendbird/chat": "4.19.2",
101+
"@sendbird/chat": "4.20.2",
102102
"@types/react": "^18"
103103
}
104104
}

packages/uikit-chat-hooks/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@
5959
"devDependencies": {
6060
"@sendbird/uikit-testing-tools": "3.11.3",
6161
"@types/react": "*",
62-
"react": "18.2.0",
62+
"react": "19.1.1",
6363
"react-native-builder-bob": "^0.18.0",
64-
"typescript": "5.2.2"
64+
"typescript": "5.8.3"
6565
},
6666
"peerDependencies": {
67-
"@sendbird/chat": "^4.19.2",
67+
"@sendbird/chat": "^4.20.2",
6868
"react": ">=16.13.1"
6969
},
7070
"react-native-builder-bob": {

packages/uikit-react-native-foundation/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@
6262
"devDependencies": {
6363
"@types/react": "*",
6464
"@types/react-native": "*",
65-
"react": "18.2.0",
66-
"react-native": "0.74.3",
65+
"react": "19.1.1",
66+
"react-native": "0.82.1",
6767
"react-native-builder-bob": "^0.18.0",
6868
"react-native-fast-image": "^8.6.3",
69-
"react-native-safe-area-context": "^4.10.8",
70-
"typescript": "5.2.2"
69+
"react-native-safe-area-context": "^5.5.2",
70+
"typescript": "5.8.3"
7171
},
7272
"peerDependencies": {
7373
"react": ">=17.0.2",

packages/uikit-react-native/package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,21 @@
6868
"access": "public"
6969
},
7070
"dependencies": {
71-
"@openspacelabs/react-native-zoomable-view": "^2.1.5",
71+
"@openspacelabs/react-native-zoomable-view": "<2.3.0",
7272
"@sendbird/uikit-chat-hooks": "3.11.3",
7373
"@sendbird/uikit-react-native-foundation": "3.11.3",
7474
"@sendbird/uikit-tools": "0.0.15",
7575
"@sendbird/uikit-utils": "3.11.3"
7676
},
7777
"devDependencies": {
78-
"@bam.tech/react-native-image-resizer": "^3.0.4",
78+
"@bam.tech/react-native-image-resizer": "^3.0.11",
7979
"@react-native-async-storage/async-storage": "^1.17.6",
8080
"@react-native-camera-roll/camera-roll": "^7.8.1",
8181
"@react-native-clipboard/clipboard": "^1.14.1",
8282
"@react-native-community/netinfo": "^11.3.2",
83-
"@react-native-documents/picker": "^10.0.0",
84-
"@react-native-firebase/app": "^14.4.0",
85-
"@react-native-firebase/messaging": "^14.4.0",
83+
"@react-native-documents/picker": "^10.1.0",
84+
"@react-native-firebase/app": "^19.3.0",
85+
"@react-native-firebase/messaging": "^19.3.0",
8686
"@types/react": "*",
8787
"@types/react-native": "*",
8888
"date-fns": ">=2.28.0",
@@ -101,21 +101,21 @@
101101
"glob": "^7.2.0",
102102
"inquirer": "^8.2.0",
103103
"js-convert-case": "^4.2.0",
104-
"react": "18.2.0",
105-
"react-native": "0.74.3",
104+
"react": "19.1.1",
105+
"react-native": "0.82.1",
106106
"react-native-audio-recorder-player": "^3.6.10",
107107
"react-native-builder-bob": "^0.18.0",
108-
"react-native-create-thumbnail": "^2.0.0",
108+
"react-native-create-thumbnail": "^2.1.1",
109109
"react-native-document-picker": "^9.3.0",
110-
"react-native-file-access": "^3.1.0",
111-
"react-native-image-picker": "^7.1.2",
112-
"react-native-mmkv": "^2.12.2",
113-
"react-native-nitro-modules": "^0.29.4",
114-
"react-native-nitro-sound": "^0.2.0",
115-
"react-native-permissions": "^3.10.1",
116-
"react-native-safe-area-context": "^4.10.8",
117-
"react-native-video": "^6.3.0",
118-
"typescript": "5.2.2"
110+
"react-native-file-access": "^3.1.1",
111+
"react-native-image-picker": "^8.2.0",
112+
"react-native-mmkv": "^4.0.0",
113+
"react-native-nitro-modules": "^0.31.5",
114+
"react-native-nitro-sound": "^0.2.9",
115+
"react-native-permissions": "^5.3.0",
116+
"react-native-safe-area-context": "^5.5.2",
117+
"react-native-video": "^6.16.1",
118+
"typescript": "5.8.3"
119119
},
120120
"peerDependencies": {
121121
"@bam.tech/react-native-image-resizer": ">=3.0.0",
@@ -125,7 +125,7 @@
125125
"@react-native-community/netinfo": ">=9.3.0",
126126
"@react-native-documents/picker": ">=10.0.0",
127127
"@react-native-firebase/messaging": ">=14.4.0",
128-
"@sendbird/chat": "^4.19.2",
128+
"@sendbird/chat": "^4.20.2",
129129
"@sendbird/react-native-scrollview-enhancer": "*",
130130
"@sendbird/uikit-tools": ">=0.0.10",
131131
"date-fns": ">=2.28.0",

packages/uikit-react-native/src/domain/openChannelCreate/component/OpenChannelCreateProfileInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
useToast,
1212
useUIKitTheme,
1313
} from '@sendbird/uikit-react-native-foundation';
14-
import Icon from '@sendbird/uikit-react-native-foundation/src/components/Icon';
14+
import { Icon } from '@sendbird/uikit-react-native-foundation';
1515
import { ifThenOr, useSafeAreaPadding } from '@sendbird/uikit-utils';
1616

1717
import { useLocalization, usePlatformService } from '../../../hooks/useContext';

packages/uikit-testing-tools/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@
4848
"access": "public"
4949
},
5050
"devDependencies": {
51-
"@sendbird/chat": "^4.19.2",
51+
"@sendbird/chat": "^4.20.2",
5252
"@sendbird/uikit-utils": "3.11.3",
5353
"@types/jest": "^29.4.0",
5454
"@types/react": "*",
5555
"@types/react-native": "*",
5656
"jest": "^29.4.3",
57-
"react": "18.2.0",
58-
"react-native": "0.74.3",
57+
"react": "19.1.1",
58+
"react-native": "0.82.1",
5959
"react-native-builder-bob": "^0.18.0",
60-
"typescript": "5.2.2"
60+
"typescript": "5.8.3"
6161
},
6262
"react-native-builder-bob": {
6363
"source": "src",

0 commit comments

Comments
 (0)