'Expo Camera not visible in Maskview (Eas Development Client)
I'm Using expo for my react native project and trying to use Maskview and a camera overlay for a face detection, it works perfect on expo go app but when i use eas to build a development client, it doesn't work, rather i get just the white background of the parent view and the maskview. if I replace the camera with Image, it will show but camera wont. I actually switched to eas build to test react native fastimage i added, so after seeing that the fastimage is working good, I can just switch back to using expo go app to continue with the other part of the project but my fear is, after I finish the project and submit it to the app stores, the users may experience the same thing.
<MaskedView
style={{ flex: 1 }}
maskElement={
<View style={{
// Transparent background mask
backgroundColor: '#00000077', // The '77' here sets the alpha
flex: 1,
}}
>
<View
style={{
// Solid background as the aperture of the lens-eye.
backgroundColor: '#ff00ff',
// If you have a set height or width, set this to half
borderRadius: 200,
flex: 1,
}}
/>
</View>
}
>
<Camera style={{width:50, height:50}}/>
</MaskedView>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
