forked from fbacker/react-native-camera
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request react-native-camera#1020 from JSandmark/patch-1
Update Readme that CAMERA permission is requierd
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,10 @@ The comprehensive camera module for React Native. Including photographs, videos, | |
- if on react-native >= 0.40 `npm i [email protected]` | ||
|
||
##### Permissions | ||
To use the camera on Android you must ask for camera permission: | ||
```java | ||
<uses-permission android:name="android.permission.CAMERA" /> | ||
``` | ||
To enable `video recording` feature you have to add the following code to the `AndroidManifest.xml`: | ||
```java | ||
<uses-permission android:name="android.permission.RECORD_AUDIO"/> | ||
|