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