How To Allow Access Camera on react-native-webview using expo?

I have web application and on my form i using tag <type="file" accept="image/*;capture=camera"> to take a picture.
I serve my web application on http://localhost:8080,
I try to view my web application on React Native WebView but… my camera can’t be opened…

Can i allow access camera on react-native-webview using expo?


1 Like

same, any ideas?

I don’t know if there any way to use device cam in webview, this does not make sense because you are working on another platform like a web browser, but u can sheet on webview by add injection js to execute a function that open u r cam and take the URL and send it as props to HTML component,

this solution working with a webview that render u r HTML code,