-
Notifications
You must be signed in to change notification settings - Fork 618
Open
Description
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';
- created a customcamera component
const CustomCamera = ({isFocused, onActionButtonPressed, t}) => {
if (!isFocused) return null;
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}
/>
</View>
);
};
- and this is how I'm using the component
Expected behavior
- opening the camera, seeing what would the camera show and eventually capture images
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 :

tungttse
Metadata
Metadata
Assignees
Labels
No labels
