Updated npm instructions in README

This commit is contained in:
Loch Wansbrough 2016-02-03 19:18:00 -08:00
parent ab7751ea44
commit 1feb274458
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ Below is a list of known issues. Pull requests are welcome for any of these issu
### Manual install ### Manual install
#### iOS #### iOS
1. `npm install react-native-camera@latest --save` 1. `npm install react-native-camera@https://github.com/lwansbrough/react-native-camera.git --save`
2. In XCode, in the project navigator, right click `Libraries``Add Files to [your project's name]` 2. In XCode, in the project navigator, right click `Libraries``Add Files to [your project's name]`
3. Go to `node_modules``react-native-camera` and add `RCTCamera.xcodeproj` 3. Go to `node_modules``react-native-camera` and add `RCTCamera.xcodeproj`
4. In XCode, in the project navigator, select your project. Add `libRCTCamera.a` to your project's `Build Phases``Link Binary With Libraries` 4. In XCode, in the project navigator, select your project. Add `libRCTCamera.a` to your project's `Build Phases``Link Binary With Libraries`
@ -26,7 +26,7 @@ Below is a list of known issues. Pull requests are welcome for any of these issu
#### Android #### Android
1. `npm install react-native-camera@latest --save` 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/[...]/MainActivity.java
- Add `import com.lwansbrough.RCTCamera.*;` to the imports at the top of the file - 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