Open Albert-vill opened 3 years ago
Hi @AlbertVC, Can you please fix this? I added you as a collaborator to react-native-opencv3 and react-native-opencv3-tests. I do not know react-native layout stuff well enough to fix this kind of stuff. Best regards, Adam
Hello, I´m trying to understand why using react navigator on my app is messing with the size of the CvCamera component.
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: