Merge pull request #275 from RoeelCohen/patch-1

Update README.md
This commit is contained in:
Seph Soliman 2020-06-12 17:58:22 -07:00 committed by GitHub
commit be351cff57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,8 @@ And in the package list in the same file (e.g. `getPackages`) add:
### CameraKitCamera - Camera component
```js
import { CameraKitCamera } from 'react-native-camera-kit';
<CameraKitCamera
ref={cam => this.camera = cam}
style={{
@ -160,6 +162,8 @@ Native Gallery View (based on `UICollectionView`(iOS) and ` RecyclerView` (Andro
![](img/camerakitgalleryview.png)
```js
import { CameraKitGalleryView } from 'react-native-camera-kit';
<CameraKitGalleryView
ref={gallery => this.gallery = gallery}
style={{flex: 1, marginTop: 20}}
@ -232,6 +236,8 @@ Attribute | Values
## QR Code
```js
import { CameraKitCameraScreen } from 'react-native-camera-kit';
<CameraKitCameraScreen
actions={{ rightButtonText: 'Done', leftButtonText: 'Cancel' }}
onBottomButtonPressed={(event) => this.onBottomButtonPressed(event)}