Update README.md

There is an issue in the docs stating that the file `import org.reactnative.RNCameraPackage;` should be added, this is incorrect and should be 1import org.reactnative.camera.RNCameraPackage;`
This commit is contained in:
Jason Schoeman 2018-02-12 13:43:48 +02:00 committed by GitHub
parent bcd1c2c751
commit ea94df18f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,7 @@ Google Symbol Utilities: https://www.gstatic.com/cpdc/dbffca986f6337f8-GoogleSym
#### Android
1. `npm install react-native-camera --save`
2. Open up `android/app/src/main/java/[...]/MainApplication.java
- Add `import org.reactnative.RNCameraPackage;` to the imports at the top of the file
- Add `import org.reactnative.camera.RNCameraPackage;` to the imports at the top of the file
- Add `new RNCameraPackage()` to the list returned by the `getPackages()` method. Add a comma to the previous item if there's already something there.
3. Append the following lines to `android/settings.gradle`: