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
Copy file name to clipboardExpand all lines: README.md
+63-1Lines changed: 63 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@ apps that let users scan notes, homework, business cards, receipts, or anything
13
13
14
14
```bash
15
15
npm install react-native-document-scanner-plugin
16
-
cd ios && pod install &&cd ..
17
16
```
18
17
19
18
After installing the plugin, you need to follow the steps below
@@ -26,10 +25,17 @@ After installing the plugin, you need to follow the steps below
26
25
27
26
-`NSCameraUsageDescription` (`Privacy - Camera Usage Description`)
28
27
28
+
3. Install pods by running
29
+
```bash
30
+
cd ios && pod install &&cd ..
31
+
```
32
+
29
33
### Android
30
34
31
35
1. Open `android/gradle.properties` and add `org.gradle.jvmargs=-Xmx2048m`
32
36
37
+
**Note:** You don't need to prompt the user to accept camera permissions for this plugin to work unless you're using another plugin that requires the user to accept camera permissions. See [Android Camera Permissions](#android-camera-permissions).
38
+
33
39
## Examples
34
40
35
41
*[Basic Example](#basic-example)
@@ -284,6 +290,62 @@ or
284
290
eas build
285
291
```
286
292
293
+
## Common Mistakes
294
+
295
+
*[Android Camera Permissions](#android-camera-permissions)
296
+
297
+
### Android Camera Permissions
298
+
299
+
You don't need to request camera permissions unless you're using another camera plugin that adds `<uses-permission android:name="android.permission.CAMERA" />` to the application's `AndroidManifest.xml`.
300
+
301
+
In that case if you don't request camera permissions you get this error
0 commit comments