CvCamera size when using navigation
Opened this issue · 1 comments
Albert-vill commented
Hello, I´m trying to understand why using react navigator on my app is messing with the size of the CvCamera component.
I have defined a basic structure with the form of:
<NavigationContainer>
<Stack.Navigator
initialRouteName="Camera"
screenOptions={{headerShown: false}}>
<Stack.Screen name="Camera" component={CustomCamera} />
</Stack.Navigator>
</NavigationContainer>
But when i open the camera screen the size is reduced. Which is something that doesnt happen if i simply open the camera.
I am using this stylesheet:
const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', position: 'absolute', width: '100%', height: '100%', }, preview: { alignItems: 'center', position: 'absolute', }, });
the framewidth and frameheight have a value of: 1280 and 960 and I am running the app on a Pixel 4 XL emulator from android studio.
This is the size of the camera when using navigation:
and this is the same when i dont use navigation: