Update README.md

This commit is contained in:
Yedidya Kennard 2016-07-26 17:21:51 +03:00 committed by GitHub
parent 8e002fd903
commit 2669d1084c
1 changed files with 22 additions and 0 deletions

View File

@ -8,10 +8,32 @@ Native camera control.
#### Install using npm:
`npm install react-native-camera-kit --save`
####IOS
- Locate the module lib folder in your node modules: `PROJECT_DIR/node_modules/react-native-camera-kit/lib`
- Drag the `ReactNativeCameraKit.xcodeproj` project file into your project
- Add `libReactNativeCameraKit.a` to all your target **Linked Frameworks and Libraries** (prone to be forgotten)
####Android
Add
include ':rncamerakit'
project(':rncamerakit').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-camera-kit/android/')
to your project's `settings.gradle`
Then add
compile project(":rncamerakit")
to your app `app/build.gradle` in the `dependencies` section.
Then in `MainActivity.java` add:
import com.wix.RNCameraKit.RNCameraKitPackage;
and in `getPackages` add
new RNCameraKitPackage()
to the list
## Examples
###CameraKitCamera