Is it possible to use your phone camera in a Web App with React?

Asked

Viewed 239 times

1

People need to develop a web app with React, "It’s not React Native", and it will be necessary to use the camera phone just to take a photo, is that possible with React? there are some lib for that?

I Googled it and found it: https://www.npmjs.com/package/react-camera

Algem ever used? works as expected?

Thank you!

  • 1

    you refer to a web application that uses the camera of the mobile phone? usually this is done through an input file. By running on a mobile phone it will already give as input option to camera and you can leave this entry as default. Add your code to the question.

  • That, plus I tested this input there, did not work as expected on some of the devices I tested.

  • include your code the question

  • here you find exactly what you want! https://react-image-upload.surge.sh/

1 answer

1

Your doubt should actually be,

it is possible to use the camera of the mobile phone in a web application?

The answer is yes but only in a few browsers. Still with certain limitations.

Remember that React is just a lib for you to create reactive interfaces, If the system you are using does not provide access to such a feature, it will not be React that will provide ok?

Source: Can I Use

Browser other questions tagged

You are not signed in. Login or sign up in order to post.