Describe the bug
Capture image is working fine on all android studio immulators as well as mobile phones using apk or in local, but when testing using Bluestack immulator:
when opening the camera, it gives a black screen
when clicking on capture image
To Reproduce
Steps to reproduce the behavior:
import {CameraScreen} from 'react-native-camera-kit';
3. and this is how I'm using the component
<CustomCamera onActionButtonPressed={this.handleCameraAction} />
{
<Text
style={{
fontSize: isTab ? 40 : 28,
alignSelf: 'center',
fontFamily: 'bold',
bottom: '85%',
color: 'red',
}}>
Max 4 Photos
</Text>
}
</>
Expected behavior
opening the camera, seeing what would the camera show and eventually capture images
Screenshots
Desktop:
OS: Windows
Version 11
Immulator:
Device: BlueStack X
Version 19.0.0.0
Additional context
It's important to note that I have made changes to the actual npm package react-native-camera-kit, but none of the changes would affect the camera as it did. especially because it works on all evironments except for Blue Stacks'
here's the full repo : https://github.com/anasbn3issa/react-native-camera-kit
I simply added namespace in android/build.gradle and bumped its sdk version.
also :
Describe the bug Capture image is working fine on all android studio immulators as well as mobile phones using apk or in local, but when testing using Bluestack immulator:
when clicking on capture image To Reproduce Steps to reproduce the behavior:
return ( <View style={{flex: 1, position: 'relative'}}> <CameraScreen actions={{rightButtonText: t("Valider"), leftButtonText : t("Annuler")}} onBottomButtonPressed={onActionButtonPressed} flashImages={{ on: flashOnImg, off: flashOffImg, auto: flashAutoImg, }} cameraFlipImage={cameraFlipIconImg} captureButtonImage={cameraButtonImg} showCapturedImageCount={true} /> ); };
Expected behavior
Screenshots![image](https://github.com/teslamotors/react-native-camera-kit/assets/47992691/cf788e7d-1efd-4949-9062-8a0d5b273fff)
Desktop:
Immulator:
Additional context It's important to note that I have made changes to the actual npm package react-native-camera-kit, but none of the changes would affect the camera as it did. especially because it works on all evironments except for Blue Stacks' here's the full repo : https://github.com/anasbn3issa/react-native-camera-kit I simply added namespace in android/build.gradle and bumped its sdk version. also :![image](https://github.com/teslamotors/react-native-camera-kit/assets/47992691/366a55ea-d050-465f-b0e2-3c324baae164)