Update README.md
This commit is contained in:
parent
8e002fd903
commit
2669d1084c
22
README.md
22
README.md
|
@ -8,10 +8,32 @@ Native camera control.
|
||||||
#### Install using npm:
|
#### Install using npm:
|
||||||
`npm install react-native-camera-kit --save`
|
`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`
|
- 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
|
- Drag the `ReactNativeCameraKit.xcodeproj` project file into your project
|
||||||
- Add `libReactNativeCameraKit.a` to all your target **Linked Frameworks and Libraries** (prone to be forgotten)
|
- 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
|
## Examples
|
||||||
|
|
||||||
###CameraKitCamera
|
###CameraKitCamera
|
||||||
|
|
Loading…
Reference in New Issue