How to Scan QR Codes + More Bar Codes using Bar Code Scanner in Expo React Native

preview_player
Показать описание
Hi everyone!

Today I want to show you how to scan QR codes and more different types of bar codes in your expo react native apps using the expo-barcode-scanner package. This tutorial will cover requesting permissions so that you can access the camera for bar code scanning. It will also cover using the BarCodeScanner component and how to scan different bar codes.

The full code for this tutorial can be found on GitHub:

And the full documentation for the BarCodeScanner can be found on the expo website:

You’ve clearly come here to learn and a free audible trial allows you to increase your learning potential in situations where you may be hands free like at the gym or on your commute. It allows you to spend more time on theory when you aren’t able to watch a screen, so that you can maximise your screen time to pick up technical skills. Try it for free today:

// ABOUT ME
My name is Chelsea and I started studying software engineering in 2010. I have been working commercially full time since 2014 and have been in various positions from graduate developer to tech lead to solution architect.
I'm a full stack developer with a lot of experience in C# and Javascript but my passion is for mobile development; specifically native iOS development and cross platform using React Native.

I always have many things on the go and am always trying out a new side hustle and failing at it; perhaps you can learn from my mistakes!

Please like and subscribe if you enjoyed this video and want to see more like it!
Have any suggestions on topics you would like to learn more about? Please suggest them in the comments... I would love to help you out while doing a bit of learning myself!

// PRODUCTS USED
I use the following products in the creation of my videos:

A reasonable quality and reasonably sturdy but cost effective microphone that can be used by both DSLR cameras, mobile phones and laptops

A kit lens but a decent quality lens for beginners getting used to a DSLR

This is the kit I started with it includes the lens linked above and is a great starter camera.

I love Apple devices... These are the ones I use for my channel content creation:

A good all round phone, good for Apple development and recording videos with enough high quality features but at a cheaper price point than the pro versions.

A nice portable computer for working from anywhere and perfect for iOS development

Really easy to use for graphic design if required for logos as part of my app development or editing the videos on the go.

For logo and icon design in Affinity Designer app for iPad

Adds keyboard and touchpad to iPad Air, making it easier to use for writing code/eBooks etc. on the go!

DISCLAIMER: Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you! Thank you for supporting my channel so I can continue to provide you with free content each week!

//CONTACT:

//CRAVING MORE:
Рекомендации по теме
Комментарии
Автор

This video helped me a lot, thank you! 😊

hyantsu
Автор

Hi, I like your videos, they are so useful for me,
Thanks, continue. ;)

ayb.s
Автор

hi, this works well when theres one sreen, if we navigate to antoher screen and then come back to the scanner screen it doesnt scan ...can you suggest something?

timtom
Автор

Hi i tried using the library and when i try testing using detox i get this error "Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'v.default.BarCodeType')"

adejumoahmad
Автор

I have been trying to implement this code for reading or scanning 2d code PDF417 type (ID colombia standart). But although is supposed this type is supported for the library on Expo, is not working.
Any sugestion? Please I will appreciate it.

aexelm
Автор

My barcode scanner never appears. Just a white screen. So fucking annoying!!!

RD-jrnv
welcome to shbcf.ru