the-camera
Camera of the-components
Installation
$ npm install the-camera --save
Usage
'use strict' PureComponent { superprops const s = this sstate = photos: videos: } { const s = this const photos videos = sstate return <div> <TheVideoStyle/> <TheImageStyle/> <TheCameraStyle/> <TheSpinStyle/> <TheButtonStyle/> <TheCamera onPhoto= s onVideo= s /> <hr/> <div> photos videos </div> </div> }
Components
TheCamera
Camera of the-components
Props
Name | Type | Description | Default |
---|---|---|---|
mediaFailMessage |
string | Message to show when failed to access camera | 'Failed to access camera' |
onPhoto |
func | Handle photo taken | `` |
onVideo |
func | Handle video taken | `` |
TheCameraButton
Props
Name | Type | Description | Default |
---|---|---|---|
hidden |
false |
||
smaller |
false |
TheCameraStyle
Style for TheCamera
Props
Name | Type | Description | Default |
---|---|---|---|
options |
object | Style options | {} |
TheCameraVideoTime
License
This software is released under the MIT License.