mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 01:38:18 +00:00
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:
parent
bcd1c2c751
commit
ea94df18f9
@ -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`:
|
||||
|
Loading…
x
Reference in New Issue
Block a user