update manual android installation guide
This commit is contained in:
parent
9540b013d3
commit
b878b4a5ef
12
README.md
12
README.md
|
@ -22,17 +22,17 @@
|
||||||
|
|
||||||
#### Android
|
#### Android
|
||||||
|
|
||||||
1. Open up `android/app/src/main/java/[...]/MainActivity.java`
|
1. Open up `android/app/src/main/java/[...]/MainApplication.java`
|
||||||
- Add `import com.reactnativecommunity.cameraroll.RNCCamerarollPackage;` to the imports at the top of the file
|
- Add `import com.reactnativecommunity.cameraroll.CameraRollPackage;` to the imports at the top of the file
|
||||||
- Add `new RNCCamerarollPackage()` to the list returned by the `getPackages()` method
|
- Add `new CameraRollPackage()` to the list returned by the `getPackages()` method
|
||||||
2. Append the following lines to `android/settings.gradle`:
|
2. Append the following lines to `android/settings.gradle`:
|
||||||
```
|
```
|
||||||
include ':@react-native-community/cameraroll'
|
include ':@react-native-community_cameraroll'
|
||||||
project(':@react-native-community/cameraroll').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/cameraroll/android')
|
project(':@react-native-community_cameraroll').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/cameraroll/android')
|
||||||
```
|
```
|
||||||
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
|
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
|
||||||
```
|
```
|
||||||
compile project(':@react-native-community/cameraroll')
|
compile project(':@react-native-community_cameraroll')
|
||||||
```
|
```
|
||||||
|
|
||||||
## Migrating from the core `react-native` module
|
## Migrating from the core `react-native` module
|
||||||
|
|
Loading…
Reference in New Issue