Skip to content

Commit 202c8d5

Browse files
committed
feat: remove cameraroll fork and use v5 original cameraroll
1 parent caa811e commit 202c8d5

File tree

10 files changed

+33
-49
lines changed

10 files changed

+33
-49
lines changed

docusaurus/docs/reactnative/basics/getting_started.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Stream Chat has a number of peer dependencies that are required to take advantag
4747
It is suggested you follow the install instructions for each package to ensure it is properly setup.
4848
Most if not all of the required packages now support auto-linking so setup should be minimal. Those with known [additional steps](#additional-steps) have been noted.
4949

50-
- [`@stream-io/react-native-cameraroll`](https://github.com/GetStream/react-native-cameraroll)
50+
- [`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll)
5151
- [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo)
5252
- [`@stream-io/flat-list-mvcp`](https://github.com/GetStream/flat-list-mvcp)
5353
- [`react-native-document-picker`](https://github.com/rnmods/react-native-document-picker)
@@ -71,14 +71,14 @@ Most if not all of the required packages now support auto-linking so setup shoul
7171
<TabItem value='yarn'>
7272

7373
```bash
74-
yarn add @stream-io/react-native-cameraroll @react-native-community/netinfo @stream-io/flat-list-mvcp react-native-document-picker react-native-fs react-native-gesture-handler react-native-haptic-feedback react-native-haptic-feedback react-native-image-crop-picker react-native-image-resizer react-native-reanimated react-native-safe-area-context react-native-share react-native-svg
74+
yarn add @react-native-camera-roll/camera-roll @react-native-community/netinfo @stream-io/flat-list-mvcp react-native-document-picker react-native-fs react-native-gesture-handler react-native-haptic-feedback react-native-haptic-feedback react-native-image-crop-picker react-native-image-resizer react-native-reanimated react-native-safe-area-context react-native-share react-native-svg
7575
```
7676

7777
</TabItem>
7878
<TabItem value='npm'>
7979

8080
```bash
81-
npm install @stream-io/react-native-cameraroll @react-native-community/netinfo @stream-io/flat-list-mvcp react-native-document-picker react-native-fs react-native-gesture-handler react-native-haptic-feedback react-native-haptic-feedback react-native-image-crop-picker react-native-image-resizer react-native-reanimated react-native-safe-area-context react-native-share react-native-svg
81+
npm install @react-native-camera-roll/camera-roll @react-native-community/netinfo @stream-io/flat-list-mvcp react-native-document-picker react-native-fs react-native-gesture-handler react-native-haptic-feedback react-native-haptic-feedback react-native-image-crop-picker react-native-image-resizer react-native-reanimated react-native-safe-area-context react-native-share react-native-svg
8282
```
8383

8484
</TabItem>
@@ -150,7 +150,7 @@ For some of the packages listed below, there are additional steps required to se
150150

151151
- `react-native` - [additional installation steps](https://reactnative.dev/docs/image#gif-and-webp-support-on-android)
152152
- `react-native-image-crop-picker` - [additional installation steps](https://github.com/ivpusic/react-native-image-crop-picker#step-3)
153-
- `react-native-cameraroll` - [additional installation steps](https://github.com/GetStream/react-native-cameraroll#permissions)
153+
- `react-native-camera-roll` - [additional installation steps](https://github.com/react-native-cameraroll/react-native-cameraroll#permissions)
154154

155155
:::note
156156

docusaurus/docs/reactnative/basics/upgrade_helper.mdx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,6 @@ title: Upgrading from V4
66
import Tabs from '@theme/Tabs';
77
import TabItem from '@theme/TabItem';
88

9-
## Update Camera Roll dependency
10-
11-
Replace the `@react-native-community/cameraroll` with `@stream-io/react-native-cameraroll`. We had to roll out our fork as `@react-native-community/cameraroll` is no longer accepting pull requests for important fixes like Android 11 compatibility.
12-
13-
```bash
14-
# Remove existing cameraroll dependency
15-
yarn remove @react-native-community/cameraroll
16-
17-
# Add stream-io's fork for cameraroll dependency.
18-
yarn add @stream-io/react-native-cameraroll
19-
```
20-
219
## Prop or Context Changes
2210

2311
Following values in [`ImageGalleryContext`](https://getstream.io/chat/docs/sdk/reactnative/v5/contexts/image-gallery-context/#value) have been renamed
@@ -49,7 +37,7 @@ To enable offline support please follow the given steps:
4937

5038
- **Upgrade stream-chat dependency (optional)**
5139

52-
If you have installed `stream-chat` dependency explicitely on your application, then upgrade it to v7
40+
If you have installed `stream-chat` dependency explicitly on your application, then upgrade it to v7
5341

5442
```bash
5543
@@ -74,7 +62,7 @@ To enable offline support please follow the given steps:
7462
But you don't need to wait for `connectUser` to succeed before rendering Chat components. This is to ensure:
7563

7664
- Chat components have access to current user information, which is important to store/access offline data.
77-
- In case or slow or no network, Chat components will still load the chat data without waiting for connectUser to succeed.
65+
- In case of slow or no network, Chat components will still load the chat data without waiting for connectUser to succeed.
7866

7967
```tsx {7,8,16}
8068
const chatClient = StreamChat.getInstance('API_KEY');

examples/SampleApp/ios/Podfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ PODS:
403403
- React-jsinspector (0.69.4)
404404
- React-logger (0.69.4):
405405
- glog
406-
- react-native-cameraroll (4.2.0):
406+
- react-native-cameraroll (5.0.0):
407407
- React-Core
408408
- react-native-document-picker (5.0.4):
409409
- React-Core
@@ -605,7 +605,7 @@ DEPENDENCIES:
605605
- React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
606606
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
607607
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
608-
- "react-native-cameraroll (from `../node_modules/@stream-io/react-native-cameraroll`)"
608+
- "react-native-cameraroll (from `../node_modules/@react-native-camera-roll/camera-roll`)"
609609
- react-native-document-picker (from `../node_modules/react-native-document-picker`)
610610
- react-native-image-resizer (from `../node_modules/react-native-image-resizer`)
611611
- "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)"
@@ -711,7 +711,7 @@ EXTERNAL SOURCES:
711711
React-logger:
712712
:path: "../node_modules/react-native/ReactCommon/logger"
713713
react-native-cameraroll:
714-
:path: "../node_modules/@stream-io/react-native-cameraroll"
714+
:path: "../node_modules/@react-native-camera-roll/camera-roll"
715715
react-native-document-picker:
716716
:path: "../node_modules/react-native-document-picker"
717717
react-native-image-resizer:
@@ -780,7 +780,7 @@ EXTERNAL SOURCES:
780780
SPEC CHECKSUMS:
781781
boost: a7c83b31436843459a1961bfd74b96033dc77234
782782
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
783-
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
783+
DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662
784784
FBLazyVector: c71b8c429a8af2aff1013934a7152e9d9d0c937d
785785
FBReactNativeSpec: cb0df4f0084281b394f76bb9b4d1d9540f35963f
786786
Firebase: 7e8fe528c161b9271d365217a74c16aaf834578e
@@ -801,15 +801,15 @@ SPEC CHECKSUMS:
801801
Flipper-RSocket: d9d9ade67cbecf6ac10730304bf5607266dd2541
802802
FlipperKit: cbdee19bdd4e7f05472a66ce290f1b729ba3cb86
803803
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
804-
glog: 3d02b25ca00c2d456734d0bcff864cbc62f6ae1a
804+
glog: 85ecdd10ee8d8ec362ef519a6a45ff9aa27b2e85
805805
GoogleAppMeasurement: 71156240babd3cc6ced03e0d54816f01a880c730
806806
GoogleDataTransport: 5fffe35792f8b96ec8d6775f5eccd83c998d5a3b
807807
GoogleUtilities: e0913149f6b0625b553d70dae12b49fc62914fd1
808808
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
809809
nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96
810810
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
811811
PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb
812-
RCT-Folly: b9d9fe1fc70114b751c076104e52f3b1b5e5a95a
812+
RCT-Folly: 803a9cfd78114b2ec0f140cfa6fa2a6bafb2d685
813813
RCTRequired: bd9d2ab0fda10171fcbcf9ba61a7df4dc15a28f4
814814
RCTTypeSafety: e44e139bf6ec8042db396201834fc2372f6a21cd
815815
React: 482cd1ba23c471be1aed3800180be2427418d7be
@@ -823,7 +823,7 @@ SPEC CHECKSUMS:
823823
React-jsiexecutor: a27badbbdbc0ff781813370736a2d1c7261181d4
824824
React-jsinspector: 8a3d3f5dcd23a91e8c80b1bf0e96902cd1dca999
825825
React-logger: 1088859f145b8f6dd0d3ed051a647ef0e3e80fad
826-
react-native-cameraroll: 71a4a68ebcff2fcb7305f4b408f9a972658bcdc7
826+
react-native-cameraroll: 4989cc00dda5e96a716befe0acfc76c31548d49f
827827
react-native-document-picker: 1a7518132d4a06b67f459be9bb1464a567d2b3b4
828828
react-native-image-resizer: d9fb629a867335bdc13230ac2a58702bb8c8828f
829829
react-native-netinfo: e849fc21ca2f4128a5726c801a82fc6f4a6db50d

examples/SampleApp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@react-navigation/native": "5.9.4",
3636
"@react-navigation/stack": "5.14.5",
3737
"@stream-io/flat-list-mvcp": "0.10.2",
38-
"@stream-io/react-native-cameraroll": "^4.2.0",
38+
"@react-native-camera-roll/camera-roll": "^5.0.0",
3939
"patch-package": "6.4.7",
4040
"react": "18.0.0",
4141
"react-native": "0.69.4",
@@ -90,4 +90,4 @@
9090
"node"
9191
]
9292
}
93-
}
93+
}

examples/SampleApp/yarn.lock

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,6 +1635,11 @@
16351635
dependencies:
16361636
merge-options "^3.0.4"
16371637

1638+
"@react-native-camera-roll/camera-roll@^5.0.0":
1639+
version "5.0.0"
1640+
resolved "https://registry.yarnpkg.com/@react-native-camera-roll/camera-roll/-/camera-roll-5.0.0.tgz#86564e335df5fc1e765a025f369c653283bd54ab"
1641+
integrity sha512-H7xfQnzNUnJ/TN+cqtepJ3A6CP4c1zaRKYkoL/DGISzcZFCLwrRcOnrgZLyeJwQhfXwgcoZMFlUtfUDiKO9YMg==
1642+
16381643
"@react-native-community/cli-clean@^8.0.4":
16391644
version "8.0.4"
16401645
resolved "https://registry.yarnpkg.com/@react-native-community/cli-clean/-/cli-clean-8.0.4.tgz#97e16a20e207b95de12e29b03816e8f2b2c80cc7"
@@ -1955,13 +1960,6 @@
19551960
resolved "https://registry.yarnpkg.com/@stream-io/flat-list-mvcp/-/flat-list-mvcp-0.10.2.tgz#e247206c5c6409bb4af120e0f02d7b9b505f6e53"
19561961
integrity sha512-jebEKP7pfRF8/tVSqNM6qdvisfOtMnMlzGYTWldoOnIq9/6DS1BU4ilzBuH6O7iBUu4bDokrMCNJgA2b2EKW/A==
19571962

1958-
"@stream-io/react-native-cameraroll@^4.2.0":
1959-
version "4.2.0"
1960-
resolved "https://registry.yarnpkg.com/@stream-io/react-native-cameraroll/-/react-native-cameraroll-4.2.0.tgz#91d89420b3f31f4183d3f686338e157413ba4f97"
1961-
integrity sha512-KykN0xzT6tBJV1kAOIr01cre8AjjD7zxjj8cWsM2sfpTClOLpDBuON1uXW/1oQvK6SG8btARqcbH8MlhZV6Knw==
1962-
dependencies:
1963-
invariant "^2.2.4"
1964-
19651963
"@tootallnate/once@1":
19661964
version "1.1.2"
19671965
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"

examples/TypeScriptMessaging/ios/Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ PODS:
284284
- React-jsinspector (0.69.3)
285285
- React-logger (0.69.3):
286286
- glog
287-
- react-native-cameraroll (4.2.1):
287+
- react-native-cameraroll (5.0.0):
288288
- React-Core
289289
- react-native-document-picker (5.0.4):
290290
- React-Core
@@ -469,7 +469,7 @@ DEPENDENCIES:
469469
- React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
470470
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
471471
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
472-
- "react-native-cameraroll (from `../node_modules/@stream-io/react-native-cameraroll`)"
472+
- "react-native-cameraroll (from `../node_modules/@react-native-camera-roll/camera-roll`)"
473473
- react-native-document-picker (from `../node_modules/react-native-document-picker`)
474474
- react-native-image-resizer (from `../node_modules/react-native-image-resizer`)
475475
- "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)"
@@ -557,7 +557,7 @@ EXTERNAL SOURCES:
557557
React-logger:
558558
:path: "../node_modules/react-native/ReactCommon/logger"
559559
react-native-cameraroll:
560-
:path: "../node_modules/@stream-io/react-native-cameraroll"
560+
:path: "../node_modules/@react-native-camera-roll/camera-roll"
561561
react-native-document-picker:
562562
:path: "../node_modules/react-native-document-picker"
563563
react-native-image-resizer:
@@ -646,7 +646,7 @@ SPEC CHECKSUMS:
646646
React-jsiexecutor: 1842ca163b160aeb224d2c65b2a60c393b273c67
647647
React-jsinspector: bb2605f98aada5d81f3494690da3ef3b4ff3b716
648648
React-logger: 23a50ef4c18bf9adbb51e2c979318e6b3a2e44a1
649-
react-native-cameraroll: ebd8682be5054f0f947f1df237886a3750011030
649+
react-native-cameraroll: 4989cc00dda5e96a716befe0acfc76c31548d49f
650650
react-native-document-picker: 1a7518132d4a06b67f459be9bb1464a567d2b3b4
651651
react-native-image-resizer: d9fb629a867335bdc13230ac2a58702bb8c8828f
652652
react-native-netinfo: 129bd99f607a2dc5bb096168f3e5c150fd1f1c95

examples/TypeScriptMessaging/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@react-navigation/native": "^6.0.11",
1818
"@react-navigation/stack": "^6.2.2",
1919
"@stream-io/flat-list-mvcp": "0.10.2",
20-
"@stream-io/react-native-cameraroll": "^4.2.0",
20+
"@react-native-camera-roll/camera-roll": "^5.0.0",
2121
"react": "18.2.0",
2222
"react-native": "0.69.3",
2323
"react-native-document-picker": "5.0.4",
@@ -64,4 +64,4 @@
6464
"node"
6565
]
6666
}
67-
}
67+
}

examples/TypeScriptMessaging/yarn.lock

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,11 @@
11191119
"@nodelib/fs.scandir" "2.1.5"
11201120
fastq "^1.6.0"
11211121

1122+
"@react-native-camera-roll/camera-roll@^5.0.0":
1123+
version "5.0.0"
1124+
resolved "https://registry.yarnpkg.com/@react-native-camera-roll/camera-roll/-/camera-roll-5.0.0.tgz#86564e335df5fc1e765a025f369c653283bd54ab"
1125+
integrity sha512-H7xfQnzNUnJ/TN+cqtepJ3A6CP4c1zaRKYkoL/DGISzcZFCLwrRcOnrgZLyeJwQhfXwgcoZMFlUtfUDiKO9YMg==
1126+
11221127
"@react-native-community/cli-clean@^8.0.4":
11231128
version "8.0.4"
11241129
resolved "https://registry.yarnpkg.com/@react-native-community/cli-clean/-/cli-clean-8.0.4.tgz#97e16a20e207b95de12e29b03816e8f2b2c80cc7"
@@ -1416,13 +1421,6 @@
14161421
resolved "https://registry.yarnpkg.com/@stream-io/flat-list-mvcp/-/flat-list-mvcp-0.10.2.tgz#e247206c5c6409bb4af120e0f02d7b9b505f6e53"
14171422
integrity sha512-jebEKP7pfRF8/tVSqNM6qdvisfOtMnMlzGYTWldoOnIq9/6DS1BU4ilzBuH6O7iBUu4bDokrMCNJgA2b2EKW/A==
14181423

1419-
"@stream-io/react-native-cameraroll@^4.2.0":
1420-
version "4.2.1"
1421-
resolved "https://registry.yarnpkg.com/@stream-io/react-native-cameraroll/-/react-native-cameraroll-4.2.1.tgz#a22265609051db867161d6036df2943266184aaf"
1422-
integrity sha512-gR+vm2hTcsktNw5HBeV7tk8RH/UhJplKKnyIyyELpRxv/Nz0bKAaLYRUO/JU8ZKYi4A6GK5C+TlCZL0BOGZ1ug==
1423-
dependencies:
1424-
invariant "^2.2.4"
1425-
14261424
"@tootallnate/once@1":
14271425
version "1.1.2"
14281426
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"

package/native-package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"stream-chat-react-native-core": "4.14.0"
1515
},
1616
"peerDependencies": {
17-
"@stream-io/react-native-cameraroll": ">=4.2.0",
17+
"@react-native-camera-roll/camera-roll": "^5.0.0",
1818
"@react-native-community/netinfo": ">=2.0.7",
1919
"@stream-io/flat-list-mvcp": "^0.10.2",
2020
"react-native": ">=0.60.0",

package/native-package/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import ImagePicker from 'react-native-image-crop-picker';
88
import ImageResizer from 'react-native-image-resizer';
99
import RNShare from 'react-native-share';
1010

11-
import CameraRoll from '@stream-io/react-native-cameraroll';
11+
import { CameraRoll } from '@react-native-camera-roll/camera-roll';
1212
import NetInfo from '@react-native-community/netinfo';
1313
import { FlatList } from '@stream-io/flat-list-mvcp';
1414
import { registerNativeHandlers } from 'stream-chat-react-native-core';

0 commit comments

Comments
 (0)