From b878b4a5ef9044ff36690ef12329b55fef4ebf31 Mon Sep 17 00:00:00 2001 From: Sam Kim Date: Mon, 25 Mar 2019 13:21:57 -0400 Subject: [PATCH] update manual android installation guide --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6a65a27b2..9fd0bc4bf 100644 --- a/README.md +++ b/README.md @@ -22,17 +22,17 @@ #### Android -1. Open up `android/app/src/main/java/[...]/MainActivity.java` - - Add `import com.reactnativecommunity.cameraroll.RNCCamerarollPackage;` to the imports at the top of the file - - Add `new RNCCamerarollPackage()` to the list returned by the `getPackages()` method +1. Open up `android/app/src/main/java/[...]/MainApplication.java` + - Add `import com.reactnativecommunity.cameraroll.CameraRollPackage;` to the imports at the top of the file + - Add `new CameraRollPackage()` to the list returned by the `getPackages()` method 2. Append the following lines to `android/settings.gradle`: ``` - include ':@react-native-community/cameraroll' - project(':@react-native-community/cameraroll').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/cameraroll/android') + include ':@react-native-community_cameraroll' + 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`: ``` - compile project(':@react-native-community/cameraroll') + compile project(':@react-native-community_cameraroll') ``` ## Migrating from the core `react-native` module