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

App is closing when I'm navigating to Camera Screen #601

Open
Akshaybagai52 opened this issue Oct 12, 2023 · 2 comments
Open

App is closing when I'm navigating to Camera Screen #601

Akshaybagai52 opened this issue Oct 12, 2023 · 2 comments

Comments

@Akshaybagai52
Copy link

Describe the bug
I'm using this library for qr scan purpose but it is not working as expectedly

To Reproduce
Steps to reproduce the behavior:

  1. use camera component code which is given in documentation
  2. open the app in ios emulator. All the screen are working fine but when I'm navigating to the component which includes the Camera the app is getting closed.

Expected behavior
It should open the camera as given in the docs

Screenshots
If the issue is a visual glitch or UI issue please provide screen shots.

Screen.Recording.2023-10-12.at.1.07.51.PM.mov

Desktop (please complete the following information):

  • OS: IOS
  • Browser [e.g. chrome, safari]
  • Version 13.2

Smartphone (please complete the following information):

  • Device: 14 pro max
  • OS: IOS 16.4
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
This is my code of Qrscanner component :
import React, { useEffect, useRef } from 'react';
import { View, Alert,Text } from 'react-native';
import { Camera, CameraType } from 'react-native-camera-kit';

const App = () => {
const cameraRef = useRef(null);

const onBarcodeScan = (event:any) => {
Alert.alert('QR code found', event.nativeEvent.codeStringValue);
};

return (
<View style={{flex: 1}}>

Working

);
};

export default App;

For permissions I did updated the info.pilst file as shown in github page

@sujathasperi2022
Copy link

Were you able to resolve this issue

@UmarbekSaidov
Copy link

I had the same error, I forgot to add the permissions mentioned in the documentation, after I added them it worked without any problems

Add Permission Link

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

3 participants