react-camera
react-camera copied to clipboard
Warning: Failed prop type: Invalid prop `style` supplied to `Camera`.
+1 buggy :-(
Still buggy (((
how to resolve?
I decide to use other way to access phone camera
<input type="file" name="picture" accept="image/*" capture="environment" id={this.props.idCamera} style={{ display:'none' }} onChange={ (e) => this.handleChange(e) } />
Works well
if you pass an style={{}} to the camera you can solve the issue
@nicks78 when you use the native input to use the camera, what will be the file will it be a blob or normal image file? thanks
@alighali85 , it's a normal file, but you can convert into whatever file type you prefer.