Expo Camera View Styling

I want to make the corners of Camera rounded. The best I’ve got is to make another view and give it a border radius but the sharp corners of camera still stick out of the box. My code snippet

 <Camera ref={ref => { this.camera = ref }} style={{ height:'75%',width:'90%',borderRadius:10,borderColor:'black',borderWidth:2 }} type={this.state.type}/>

Still getting sharp corners

What happens if you add:

overflow: 'hidden'

To the Camera component?

Didn’t work

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.