expo-camera
Advanced tools
Comparing version 4.0.0 to 5.0.0-rc.0
import { UnavailabilityError } from '@unimodules/core'; | ||
import mapValues from 'lodash.mapvalues'; | ||
import mapValues from 'lodash/mapValues'; | ||
import PropTypes from 'prop-types'; | ||
@@ -4,0 +4,0 @@ import React from 'react'; |
{ | ||
"name": "expo-camera", | ||
"version": "4.0.0", | ||
"version": "5.0.0-rc.0", | ||
"description": "A React component that renders a preview for the device's either front or back camera. Camera's parameters like zoom, auto focus, white balance and flash mode are adjustable. With expo-camera, one can also take photos and record videos that are saved to the app's cache. Morever, the component is also capable of detecting faces and bar codes appearing on the preview.", | ||
@@ -43,3 +43,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"lodash.mapvalues": "^4.6.0", | ||
"lodash": "^4.6.0", | ||
"prop-types": "^15.6.0" | ||
@@ -50,3 +50,3 @@ }, | ||
}, | ||
"gitHead": "8413e821076a2eca36b302e68dd628ce2e1f591a" | ||
"gitHead": "211a7a3ce4007e7aa10ccf6efac4b5333ec31d0a" | ||
} |
@@ -14,3 +14,3 @@ # expo-camera | ||
For bare React Native projects, you must ensure that you have [installed and configured the `@unimodules/core` package](https://github.com/unimodules/core) before continuing. | ||
For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/unimodules/react-native-unimodules) before continuing. | ||
@@ -25,27 +25,14 @@ ### Add the package to your npm dependencies | ||
Add the dependency to your `Podfile` and then run `pod install`. | ||
Run `pod install` in the ios directory after installing the npm package. | ||
```ruby | ||
pod 'EXCamera', path: '../node_modules/expo-camera/ios' | ||
``` | ||
### Configure for Android | ||
1. Append the following lines to `android/settings.gradle`: | ||
Adjust the `android/build.gradle` to add a new `maven` block after all other repositories as described below: | ||
```gradle | ||
include ':expo-camera' | ||
project(':expo-camera').projectDir = new File(rootProject.projectDir, '../node_modules/expo-camera/android') | ||
``` | ||
2. Insert the following lines inside the dependencies block in `android/app/build.gradle`: | ||
```gradle | ||
api project(':expo-camera') | ||
``` | ||
3. Adjust the `android/build.gradle` to add the `maven` block as described below: | ||
```gradle | ||
allprojects { | ||
repositories { | ||
// * Your other repositories here * | ||
// * Add a new maven block after other repositories / blocks * | ||
maven { | ||
@@ -59,15 +46,4 @@ // expo-camera bundles a custom com.google.android:cameraview | ||
4. In `MainApplication.java`, import the package and add it to the `ReactModuleRegistryProvider` list: | ||
```java | ||
import expo.modules.camera.CameraPackage; | ||
``` | ||
```java | ||
private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(Arrays.<Package>asList( | ||
// Your other packages will be here | ||
new CameraPackage() | ||
), Arrays.<SingletonModule>asList()); | ||
``` | ||
# Contributing | ||
Contributions are very welcome! Please refer to guidelines described in the [contributing guide]( https://github.com/expo/expo#contributing). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
324700
3730
1
47
+ Addedlodash@^4.6.0
+ Addedlodash@4.17.21(transitive)
- Removedlodash.mapvalues@^4.6.0
- Removedlodash.mapvalues@4.6.0(transitive)