You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll) for accessing device gallery.
86
86
-[`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) for SDK to respond to network changes.
87
87
-[`react-native-gesture-handler`](https://github.com/software-mansion/react-native-gesture-handler) to handle gestures within the SDK.
88
-
-[`react-native-image-crop-picker`](https://github.com/ivpusic/react-native-image-crop-picker) to capture images to attach them in the message.
89
88
-[`@bam.tech/react-native-image-resizer`](https://github.com/bamlab/react-native-image-resizer) to compress image uploads.
90
89
-[`react-native-reanimated`](https://github.com/software-mansion/react-native-reanimated) to compress image uploads.
91
90
-[`react-native-svg`](https://github.com/react-native-svg/react-native-svg) for SVG support.
@@ -96,7 +95,6 @@ values={[
96
95
-[`expo-media-library`](https://docs.expo.dev/versions/latest/sdk/media-library/) for accessing device gallery.
97
96
-[`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) for SDK to respond to network changes.
98
97
-[`react-native-gesture-handler`](https://github.com/software-mansion/react-native-gesture-handler) to handle gestures within the SDK.
99
-
-[`expo-image-picker`](https://docs.expo.dev/versions/latest/sdk/imagepicker/) to capture images to attach them in the message.
100
98
-[`expo-image-manipulator`](https://docs.expo.dev/versions/latest/sdk/imagemanipulator/) to compress image uploads.
101
99
-[`react-native-reanimated`](https://github.com/software-mansion/react-native-reanimated) to compress image uploads.
102
100
-[`react-native-svg`](https://docs.expo.dev/versions/latest/sdk/svg/) for SVG support.
Capture images from the camera and upload them as attachments in the chat.
286
+
287
+
<Tabs
288
+
defaultValue='rncli'
289
+
groupId='rn-platform'
290
+
values={[
291
+
{ label: 'RN CLI', value: 'rncli' },
292
+
{ label: 'Expo', value: 'expo' },
293
+
]}
294
+
>
295
+
<TabItemvalue='rncli'>
296
+
297
+
```bash title="Terminal"
298
+
yarn add react-native-image-picker
299
+
```
300
+
301
+
</TabItem>
302
+
303
+
<TabItemvalue='expo'>
304
+
305
+
```bash title="Terminal"
306
+
npx expo install expo-image-picker
307
+
```
308
+
309
+
</TabItem>
310
+
311
+
</Tabs>
312
+
285
313
### Offline support
286
314
287
315
Enable offline support in the app.
@@ -330,6 +358,7 @@ values={[
330
358
-[`react-native-haptic-feedback`](https://github.com/junina-de/react-native-haptic-feedback) for user haptics feedback.
331
359
-[`@react-native-clipboard/clipboard`](https://github.com/react-native-clipboard/clipboard) for Copy message support.
332
360
-[`react-native-document-picker`](https://github.com/rnmods/react-native-document-picker) to access device media files.
361
+
-[`react-native-image-picker`](https://github.com/react-native-image-picker/react-native-image-picker) to capture images to attach them in the message.
333
362
-[`@op-engineering/op-sqlite`](https://github.com/OP-Engineering/op-sqlite) to enable Offline support in the app.
334
363
335
364
</TabItem>
@@ -341,6 +370,7 @@ values={[
341
370
-[`expo-haptics`](https://docs.expo.dev/versions/latest/sdk/haptics/) for user haptics support.
342
371
-[`expo-clipboard`](https://docs.expo.dev/versions/latest/sdk/clipboard/) for Copy message support.
343
372
-[`expo-document-picker`](https://docs.expo.dev/versions/latest/sdk/document-picker/) to access device media files.
373
+
-[`expo-image-picker`](https://docs.expo.dev/versions/latest/sdk/imagepicker/) to capture images to attach them in the message.
344
374
-[`@op-engineering/op-sqlite`](https://github.com/OP-Engineering/op-sqlite) to enable Offline support in the app.
345
375
346
376
</TabItem>
@@ -365,7 +395,7 @@ values={[
365
395
<TabItemvalue='rncli'>
366
396
367
397
-[`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll?tab=readme-ov-file#permissions) for gallery/photo library access.
368
-
-[`react-native-image-crop-picker`](https://github.com/ivpusic/react-native-image-crop-picker?tab=readme-ov-file#step-3) for camera access.
398
+
-[`react-native-image-picker`](https://github.com/react-native-image-picker/react-native-image-picker?tab=readme-ov-file#post-install-steps) for camera access.
369
399
-[`react-native-audio-recorder-player`](https://github.com/hyochan/react-native-audio-recorder-player?tab=readme-ov-file#post-installation) for microphone access for voice recording.
370
400
371
401
An example `AndroidManifest.xml` would look like this with permissions:
@@ -477,7 +507,7 @@ The entry point of your app exists usually either in `index.js` or `App.tsx` fil
477
507
Please also follow the steps mentioned in the links below for corresponding dependencies:
### Change `react-native-image-crop-picker` to `react-native-image-picker`
37
+
38
+
The `react-native-image-crop-picker` package has been replaced with `react-native-image-picker`. This is a better alternative, and can help us with our new architecture endeavors.
39
+
40
+
You can replace it by running the following commands:
41
+
42
+
```bash
43
+
yarn remove react-native-image-crop-picker
44
+
yarn add react-native-image-picker
45
+
```
46
+
47
+
Also, the dependency is made optional now, so if you don't want to use the image picker, you can remove it from your project and the camera selector icon on the Attachment picker will be simply hidden for you.
48
+
36
49
### Change `react-native-quick-sqlite` to `op-sqlite`
37
50
38
51
The `react-native-quick-sqlite` package has been replaced with `op-sqlite`. This is a faster alternative, and can help us with our new architecture endeavors.
0 commit comments