expo Barcode Scanner torchMode prop not working on sdk 30

#1

Hi, migrated from sdk 28 to 30 some days ago but only now realised that the torchMode prop is doing nothing in the barcode scanner component. Used to work really nice on ios and android. Did you drop support for that or am I missing something? Cheers.

#2

Is there a way to bring this back anyhow? It was really useful to have this since our app deals with engineers servicing equipment and very often they are in poor visibility places where they have to scan the equipment barcode. Please help.

#3

Hello @joaopiopedreira, BarCodeScanner is no longer respecting torchMode or any other prop that is not directly related to barcode scanning.
If you would like to use torch or other camera-related things use Camera component and connect it with BarCodeScanner component.
See here and here.

1 Like
#4

Hi @barthec, thank you for the advise. I think that will work. When you say " connect Camera with BarCodeScanner component." do you mean something in particular? Or are you just recommending that I use Camera instead of BarCodeScanner?

#5

@joaopiopedreira, yeah precisely :wink:

closed #6

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.