react-camera icon indicating copy to clipboard operation
react-camera copied to clipboard

Warning: Failed prop type: Invalid prop `style` supplied to `Camera`.

Open nicks78 opened this issue 7 years ago • 7 comments

nicks78 avatar Dec 26 '17 10:12 nicks78

+1 buggy :-(

crobinson42 avatar Jan 25 '18 14:01 crobinson42

Still buggy (((

trikem avatar Feb 27 '18 22:02 trikem

how to resolve?

ghost avatar May 18 '18 10:05 ghost

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

nicks78 avatar May 18 '18 10:05 nicks78

if you pass an style={{}} to the camera you can solve the issue

alighali85 avatar Sep 11 '18 11:09 alighali85

@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 avatar Sep 11 '18 11:09 alighali85

@alighali85 , it's a normal file, but you can convert into whatever file type you prefer.

nicks78 avatar Nov 24 '18 04:11 nicks78