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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 react-native-vision-camera undefined. #2758

Closed
3 of 5 tasks
Urja99 opened this issue Apr 19, 2024 · 1 comment
Closed
3 of 5 tasks

馃悰 react-native-vision-camera undefined. #2758

Urja99 opened this issue Apr 19, 2024 · 1 comment
Labels
馃悰 bug Something isn't working

Comments

@Urja99
Copy link

Urja99 commented Apr 19, 2024

What's happening?

t not working with my library

Reproduceable Code

const requestCameraPermission = useCallback(async () => {
    console.log('Requesting camera permission...');
    const permission = await Camera.getCameraPermissionStatus();
    console.log(`Camera permission status: ${permission}`);

    if (permission === 'denied') {await Linking.openSettings();}
  }, []);
  const devices = useCameraDevices();
  const device = devices.back;
  console.log(devices);

 "react": "18.2.0",
  "react-native": "0.71.8",
  "react-native-vision-camera":"2.16.8"

Relevant log output

LOG  cameraPermission undefined
 LOG  {"back": undefined, "external": undefined, "front": undefined, "unspecified": undefined}

Camera Device

{"_h": 0, "_i": 0, "_j": null, "_k": null}

Device

samsung s21

VisionCamera Version

2.16.8

Can you reproduce this issue in the VisionCamera Example app?

I didn't try (鈿狅笍 your issue might get ignored & closed if you don't try this)

Additional information

@Urja99 Urja99 added the 馃悰 bug Something isn't working label Apr 19, 2024
@mrousavy
Copy link
Owner

no repro, no native logs, not reproduced in example app - closing issue because of lack of information.

@mrousavy mrousavy closed this as not planned Won't fix, can't repro, duplicate, stale Apr 21, 2024
@Urja99 Urja99 changed the title 馃悰 Adding react-native-vision-camera in my custom react-native library is not working all the functions showing undefined. 馃悰 react-native-vision-camera undefined. Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃悰 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants