diff --git a/README.md b/README.md index 5b51428..4872dbe 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ The comprehensive camera module for React Native. Including photographs, videos, ##### Permissions To enable `video recording` feature you have to add the following code to the `AndroidManifest.xml`: -``` +```java @@ -52,7 +52,7 @@ To enable `video recording` feature you have to add the following code to the `A ### Mostly automatic install with CocoaPods 1. `npm install react-native-camera --save` 2. Add the plugin dependency to your Podfile, pointing at the path where NPM installed it: -``` +```obj-c pod 'react-native-camera', path: '../node_modules/react-native-camera' ``` 3. Run `pod install` @@ -75,19 +75,19 @@ pod 'react-native-camera', path: '../node_modules/react-native-camera' 3. Append the following lines to `android/settings.gradle`: - ``` + ```gradle include ':react-native-camera' project(':react-native-camera').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-camera/android') ``` 4. Insert the following lines inside the dependencies block in `android/app/build.gradle`: - ``` + ```gradle compile project(':react-native-camera') ``` 5. Declare the permissions in your Android Manifest (required for `video recording` feature) - ``` + ```java