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

💭 flash button on barcode Scanner #3053

Open
3 of 4 tasks
moloudayat opened this issue Jul 7, 2024 · 2 comments
Open
3 of 4 tasks

💭 flash button on barcode Scanner #3053

moloudayat opened this issue Jul 7, 2024 · 2 comments
Labels
💭 question Further information is requested

Comments

@moloudayat
Copy link

Question

I want to add a simple button on the camera to allow the user to turn off and on the flash(torch). is there any way that I can do it

What I tried

<>
                <Camera
                    style={StyleSheet.absoluteFill}
                    device={device}
                    isActive={true}
                    codeScanner={codeScanner}
                    torch={isFlashOn ? "on" : "off"}
                    lowLightBoost={false}

                />
                <TouchableOpacity
                    onPress={toggleFlash}>
                    <Image source={isFlashOn ? FlashOff : FlashOn}/>
                </TouchableOpacity>
 </>

VisionCamera Version

4.3.2

Additional information

@moloudayat moloudayat added the 💭 question Further information is requested label Jul 7, 2024
@maintenance-hans maintenance-hans bot changed the title flash button on barcode Scanner💭 Jul 7, 2024
Copy link

Guten Tag, Hans here.

Note

New features, bugfixes, updates and other improvements are all handled mostly by @mrousavy in his free time.
To support @mrousavy, please consider 💖 sponsoring him on GitHub 💖.
Sponsored issues will be prioritized.

@ferjuarezlp
Copy link

I think is related with #2928

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💭 question Further information is requested
2 participants