Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera capture image not working on Bluestack : black screen + weird sound on capture picture click #650

Open
anasbn3issa opened this issue Mar 23, 2024 · 0 comments

Comments

@anasbn3issa
Copy link

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:
  1. import {CameraScreen} from 'react-native-camera-kit';
  2. 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>
  );
};
  1. and this is how I'm using the component
{ Max 4 Photos }

Expected behavior

  • opening the camera, seeing what would the camera show and eventually capture images

Screenshots
image

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 :
image

@anasbn3issa anasbn3issa changed the title Camera capture image not working on Bluestack Camera capture image not working on Bluestack : black screen + weird sound on capture picture click Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant