Updates README.md: Manual Android install (#385)

Changes MainActivity.java to MainApplication.java.

For people with little or no Java experience, it also ensures the list returned by getPackages() is separated by a coma.
This commit is contained in:
Sergio Navarrete Suárez 2016-09-12 22:30:02 -05:00 committed by Zack Story
parent 046970feca
commit ae88ac7405
1 changed files with 2 additions and 2 deletions

View File

@ -34,9 +34,9 @@ pod 'react-native-camera', path: '../node_modules/react-native-camera'
#### Android
1. `npm install react-native-camera@https://github.com/lwansbrough/react-native-camera.git --save`
2. Open up `android/app/src/main/java/[...]/MainActivity.java
2. Open up `android/app/src/main/java/[...]/MainApplication.java
- Add `import com.lwansbrough.RCTCamera.*;` to the imports at the top of the file
- Add `new RCTCameraPackage()` to the list returned by the `getPackages()` method
- Add `new RCTCameraPackage()` 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`: