1.0.2 • Published 6 years ago

react-easy-camera v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

react-easy-camera

📸 simple react camera component

Install

npm i react-easy-camera

Usage

<Camera
  ref={(camera) => { this.camera = camera }}
  onTakePictureGetUrl={this.onTakePictureGetUrl}
  onProgress={this.onProgress}
  onReadyStateChange={this.onReadyStateChange}
/>

Props

NameTypeDescription
onTakePictureGetUrlfunction
onProgressfunction
onReadyStateChangefunction
onLoadfunction

Methods

NameTypeDescription
openfunction
fileUploadfunction

Example

Follow Example