metiz logo
  • COMPANY
        • Company

        • About Us
        • Award & Certifications
        • Testimonials
        • Blog
        • Life At Metizsoft
        • Partner With Us
        • Career
        • Our Leadership Team
        • Get In Touch

        • Skype
          metizsoft

        • Email us
          hello@metizsoft.com

        • India
          +1 (845) 418-5206

        • United States
          +1 (845) 418-5206

        • Let’s grow together Partner with us.
  • SERVICES
    • Enterprise Mobility
      • Android App Development
      • IoT App Development
      • iPhone App Development
    • Cross Platform Apps Development
      • React Native App Development
      • Flutter App Development
      • Ionic App Development
      • Progressive Web App Development
    • Ecommerce & CMS
      • Shopify Development
      • BigCommerce Development
      • Magento Development
      • Shopify Plus Development
      • WordPress Development
    • Front End Technology
      • Angular JS Development
      • Backbone JS Development
      • Javascript Development
      • React JS Development
    • Back End Technology
      • ROR Development
      • Node JS Development
      • Laravel Development
      • CodeIgniter Development
      • PHP Development
      • ASP.NET Development
      • Java Development
      • Python Development
    • UI/UX Design Services
      • PSD to HTML Development
      • Responsive Web Design
      • Mobile App Design
  • SOLUTIONS
    • Design & Development
      • Web App Development
      • Mobile App Development
      • Ecommerce Development
      • Enterprise Software Development
      • Front-End Development
      • Back-End Development
    • On-Demand Solutions
      • Shopify Print On Demand App
      • Medicine Delivery App
      • Taxi Booking App
      • Grocery Delivery app
    • Digital Marketing
      • Content Marketing
      • Email Marketing
      • SEO
      • SMO
      • PPC
    • API Integrations
      • Shipping Integration
      • Payment Integration
    • Support & Testing
      • Software Testing
      • Mobile Testing
      • Support & Maintainence
  • HIRE US
    • Mobile Developer
      • Hire React Native Developer
      • Hire Flutter Developer
      • Hire Android Developer
      • Hire IOS Developer
      • Hire PWA Developer
      • Hire IOT Developer
    • Web Developer
      • Hire React.js Developer
      • Hire Node.js Developer
      • Hire Angular Developer
      • Hire Laravel Developer
      • Hire PHP Developer
      • Hire ASP.NET Developer
      • Hire AWS Developer
    • QA Tester
      • Hire Manual QA
      • Hire Automation QA
    • Ecommerce & CMS
      • Hire Shopify Developer
      • Hire Magento Developer
      • Hire BigCommerce Developer
      • Hire WordPress Developer
  • CASE STUDIES
    • Mobile
      • Video Consultation App Using Agora SDK – Teledoctor
      • Data Collection Mobile App - Rayz
      • BLE Based Mobile App For LED Lights - Viral Lights
      • Live Streaming Technology
      • Smart Digital Fitness Mobile App
      • Medical Access Programm App
      • KYC Verification App - MetizPay
      • Sales Rep Tracking App
      • Heat Management System - IoT
    • Web
      • Hostel Management - Resilience Hospitality
      • Hotel Management System - Ezcheckinn
      • Restaurant Management System - GoGohill
      • Onlilne Home Decor Shop - Artiliving
      • Smart Digital Printing App
      • Printer Partners - Shopify App
  • INDUSTRIES
    • Startups
    • Healthcare
    • Travel & Hospitality
    • Construction
    • Manufacturing
    • Banking & Finance
    • Media & Advt
    • Logistic & Transportation
    • Ecommerce
    • Food & Beverages
  • PRODUCTS
  • OUR WORK
  • CONTACT US
metiz logo
  • COMPANY
        • Company

        • About Us
        • Award & Certifications
        • Testimonials
        • Blog
        • Life At Metizsoft
        • Partner With Us
        • Career
        • Our Leadership Team
        • Get In Touch

        • Skype
          metizsoft

        • Email us
          hello@metizsoft.com

        • India
          +1 (845) 418-5206

        • United States
          +1 (845) 418-5206

        • Let’s grow together Partner with us.
  • SERVICES
    • Enterprise Mobility
      • Android App Development
      • IoT App Development
      • iPhone App Development
    • Cross Platform Apps Development
      • React Native App Development
      • Flutter App Development
      • Ionic App Development
      • Progressive Web App Development
    • Ecommerce & CMS
      • Shopify Development
      • BigCommerce Development
      • Magento Development
      • Shopify Plus Development
      • WordPress Development
    • Front End Technology
      • Angular JS Development
      • Backbone JS Development
      • Javascript Development
      • React JS Development
    • Back End Technology
      • ROR Development
      • Node JS Development
      • Laravel Development
      • CodeIgniter Development
      • PHP Development
      • ASP.NET Development
      • Java Development
      • Python Development
    • UI/UX Design Services
      • PSD to HTML Development
      • Responsive Web Design
      • Mobile App Design
  • SOLUTIONS
    • Design & Development
      • Web App Development
      • Mobile App Development
      • Ecommerce Development
      • Enterprise Software Development
      • Front-End Development
      • Back-End Development
    • On-Demand Solutions
      • Shopify Print On Demand App
      • Medicine Delivery App
      • Taxi Booking App
      • Grocery Delivery app
    • Digital Marketing
      • Content Marketing
      • Email Marketing
      • SEO
      • SMO
      • PPC
    • API Integrations
      • Shipping Integration
      • Payment Integration
    • Support & Testing
      • Software Testing
      • Mobile Testing
      • Support & Maintainence
  • HIRE US
    • Mobile Developer
      • Hire React Native Developer
      • Hire Flutter Developer
      • Hire Android Developer
      • Hire IOS Developer
      • Hire PWA Developer
      • Hire IOT Developer
    • Web Developer
      • Hire React.js Developer
      • Hire Node.js Developer
      • Hire Angular Developer
      • Hire Laravel Developer
      • Hire PHP Developer
      • Hire ASP.NET Developer
      • Hire AWS Developer
    • QA Tester
      • Hire Manual QA
      • Hire Automation QA
    • Ecommerce & CMS
      • Hire Shopify Developer
      • Hire Magento Developer
      • Hire BigCommerce Developer
      • Hire WordPress Developer
  • CASE STUDIES
    • Mobile
      • Video Consultation App Using Agora SDK – Teledoctor
      • Data Collection Mobile App - Rayz
      • BLE Based Mobile App For LED Lights - Viral Lights
      • Live Streaming Technology
      • Smart Digital Fitness Mobile App
      • Medical Access Programm App
      • KYC Verification App - MetizPay
      • Sales Rep Tracking App
      • Heat Management System - IoT
    • Web
      • Hostel Management - Resilience Hospitality
      • Hotel Management System - Ezcheckinn
      • Restaurant Management System - GoGohill
      • Onlilne Home Decor Shop - Artiliving
      • Smart Digital Printing App
      • Printer Partners - Shopify App
  • INDUSTRIES
    • Startups
    • Healthcare
    • Travel & Hospitality
    • Construction
    • Manufacturing
    • Banking & Finance
    • Media & Advt
    • Logistic & Transportation
    • Ecommerce
    • Food & Beverages
  • PRODUCTS
  • OUR WORK
  • CONTACT US
metiz logo
  • COMPANY
        • Company

        • About Us
        • Award & Certifications
        • Testimonials
        • Blog
        • Life At Metizsoft
        • Partner With Us
        • Career
        • Our Leadership Team
        • Get In Touch

        • Skype
          metizsoft

        • Email us
          hello@metizsoft.com

        • India
          +1 (845) 418-5206

        • United States
          +1 (845) 418-5206

        • Let’s grow together Partner with us.
  • SERVICES
    • Enterprise Mobility
      • Android App Development
      • IoT App Development
      • iPhone App Development
    • Cross Platform Apps Development
      • React Native App Development
      • Flutter App Development
      • Ionic App Development
      • Progressive Web App Development
    • Ecommerce & CMS
      • Shopify Development
      • BigCommerce Development
      • Magento Development
      • Shopify Plus Development
      • WordPress Development
    • Front End Technology
      • Angular JS Development
      • Backbone JS Development
      • Javascript Development
      • React JS Development
    • Back End Technology
      • ROR Development
      • Node JS Development
      • Laravel Development
      • CodeIgniter Development
      • PHP Development
      • ASP.NET Development
      • Java Development
      • Python Development
    • UI/UX Design Services
      • PSD to HTML Development
      • Responsive Web Design
      • Mobile App Design
  • SOLUTIONS
    • Design & Development
      • Web App Development
      • Mobile App Development
      • Ecommerce Development
      • Enterprise Software Development
      • Front-End Development
      • Back-End Development
    • On-Demand Solutions
      • Shopify Print On Demand App
      • Medicine Delivery App
      • Taxi Booking App
      • Grocery Delivery app
    • Digital Marketing
      • Content Marketing
      • Email Marketing
      • SEO
      • SMO
      • PPC
    • API Integrations
      • Shipping Integration
      • Payment Integration
    • Support & Testing
      • Software Testing
      • Mobile Testing
      • Support & Maintainence
  • HIRE US
    • Mobile Developer
      • Hire React Native Developer
      • Hire Flutter Developer
      • Hire Android Developer
      • Hire IOS Developer
      • Hire PWA Developer
      • Hire IOT Developer
    • Web Developer
      • Hire React.js Developer
      • Hire Node.js Developer
      • Hire Angular Developer
      • Hire Laravel Developer
      • Hire PHP Developer
      • Hire ASP.NET Developer
      • Hire AWS Developer
    • QA Tester
      • Hire Manual QA
      • Hire Automation QA
    • Ecommerce & CMS
      • Hire Shopify Developer
      • Hire Magento Developer
      • Hire BigCommerce Developer
      • Hire WordPress Developer
  • CASE STUDIES
    • Mobile
      • Video Consultation App Using Agora SDK – Teledoctor
      • Data Collection Mobile App - Rayz
      • BLE Based Mobile App For LED Lights - Viral Lights
      • Live Streaming Technology
      • Smart Digital Fitness Mobile App
      • Medical Access Programm App
      • KYC Verification App - MetizPay
      • Sales Rep Tracking App
      • Heat Management System - IoT
    • Web
      • Hostel Management - Resilience Hospitality
      • Hotel Management System - Ezcheckinn
      • Restaurant Management System - GoGohill
      • Onlilne Home Decor Shop - Artiliving
      • Smart Digital Printing App
      • Printer Partners - Shopify App
  • INDUSTRIES
    • Startups
    • Healthcare
    • Travel & Hospitality
    • Construction
    • Manufacturing
    • Banking & Finance
    • Media & Advt
    • Logistic & Transportation
    • Ecommerce
    • Food & Beverages
  • PRODUCTS
  • OUR WORK
  • CONTACT US
metiz logo
  • COMPANY
        • Company

        • About Us
        • Award & Certifications
        • Testimonials
        • Blog
        • Life At Metizsoft
        • Partner With Us
        • Career
        • Our Leadership Team
        • Get In Touch

        • Skype
          metizsoft

        • Email us
          hello@metizsoft.com

        • India
          +1 (845) 418-5206

        • United States
          +1 (845) 418-5206

        • Let’s grow together Partner with us.
  • SERVICES
    • Enterprise Mobility
      • Android App Development
      • IoT App Development
      • iPhone App Development
    • Cross Platform Apps Development
      • React Native App Development
      • Flutter App Development
      • Ionic App Development
      • Progressive Web App Development
    • Ecommerce & CMS
      • Shopify Development
      • BigCommerce Development
      • Magento Development
      • Shopify Plus Development
      • WordPress Development
    • Front End Technology
      • Angular JS Development
      • Backbone JS Development
      • Javascript Development
      • React JS Development
    • Back End Technology
      • ROR Development
      • Node JS Development
      • Laravel Development
      • CodeIgniter Development
      • PHP Development
      • ASP.NET Development
      • Java Development
      • Python Development
    • UI/UX Design Services
      • PSD to HTML Development
      • Responsive Web Design
      • Mobile App Design
  • SOLUTIONS
    • Design & Development
      • Web App Development
      • Mobile App Development
      • Ecommerce Development
      • Enterprise Software Development
      • Front-End Development
      • Back-End Development
    • On-Demand Solutions
      • Shopify Print On Demand App
      • Medicine Delivery App
      • Taxi Booking App
      • Grocery Delivery app
    • Digital Marketing
      • Content Marketing
      • Email Marketing
      • SEO
      • SMO
      • PPC
    • API Integrations
      • Shipping Integration
      • Payment Integration
    • Support & Testing
      • Software Testing
      • Mobile Testing
      • Support & Maintainence
  • HIRE US
    • Mobile Developer
      • Hire React Native Developer
      • Hire Flutter Developer
      • Hire Android Developer
      • Hire IOS Developer
      • Hire PWA Developer
      • Hire IOT Developer
    • Web Developer
      • Hire React.js Developer
      • Hire Node.js Developer
      • Hire Angular Developer
      • Hire Laravel Developer
      • Hire PHP Developer
      • Hire ASP.NET Developer
      • Hire AWS Developer
    • QA Tester
      • Hire Manual QA
      • Hire Automation QA
    • Ecommerce & CMS
      • Hire Shopify Developer
      • Hire Magento Developer
      • Hire BigCommerce Developer
      • Hire WordPress Developer
  • CASE STUDIES
    • Mobile
      • Video Consultation App Using Agora SDK – Teledoctor
      • Data Collection Mobile App - Rayz
      • BLE Based Mobile App For LED Lights - Viral Lights
      • Live Streaming Technology
      • Smart Digital Fitness Mobile App
      • Medical Access Programm App
      • KYC Verification App - MetizPay
      • Sales Rep Tracking App
      • Heat Management System - IoT
    • Web
      • Hostel Management - Resilience Hospitality
      • Hotel Management System - Ezcheckinn
      • Restaurant Management System - GoGohill
      • Onlilne Home Decor Shop - Artiliving
      • Smart Digital Printing App
      • Printer Partners - Shopify App
  • INDUSTRIES
    • Startups
    • Healthcare
    • Travel & Hospitality
    • Construction
    • Manufacturing
    • Banking & Finance
    • Media & Advt
    • Logistic & Transportation
    • Ecommerce
    • Food & Beverages
  • PRODUCTS
  • OUR WORK
  • CONTACT US
call Shopify Official Patner
Implement A React Native Barcode Scanner
In:Mobile Apps

Implement A React Native Barcode Scanner

Chetan Patel February 25, 2019 0

React Native Barcode Scanner comes as a great utility for scanning barcodes. It runs fine on Android. However, Use something like react-native-camera for iOS.

The postfix -Google is added since the native implementation is based on Google’s Barcode API: https://developers.google.com/vision/barcodes-overview

Let’s see how it works

  • How to install Barcode Scanner Using React Native?

To include the latest version (1.4.0) react-native-barcode-scanner in your project, run the following terminal commands in your React Native project root folder

1>npm i react-native-barcode-scanner-google –save 2>react-native link react-native-barcode-scanner-google

  • Benefits of using this barcode scanner
  1. Faster
  2. More accurate
  3. More convenient ( supports scanning in any direction)

Note that this barcode scanner doesn’t ship with a fancy overlay to display a scanning interface to the user. It’s just a fast scanner view that shows the camera stream, on top of which you can overlay your own UI.

Simple Usage

importReact, { Component } from ‘react’; import{ AppRegistry, StyleSheet, Text, View, Alert } from ‘react-native’; importBarcodeScanner from ‘react-native-barcode-scanner-google’; exportdefaultclassBarcodeAppextendsComponent { render() { return( <View style={{flex: 1}}> <BarcodeScanner style={{flex: 1}} onBarcodeRead={({data, type}) => { // handle your scanned barcodes here! // as an example, we show an alert: Alert.alert(`Barcode ‘${data}’ of type ‘${type}’ was scanned.`); }} /> </View> ); } } AppRegistry.registerComponent(‘BarcodeApp’, () =>BarcodeApp);

Advanced Usage

import React, { Component } from ‘react’; import { AppRegistry, StyleSheet, Text, View, Alert } from ‘react-native’; importBarcodeScanner, { Exception, FocusMode, BarcodeType, pauseScanner, resumeScanner } from ‘react-native-barcode-scanner-google’; export default class BarcodeApp extends Component { render() { return ( <View style={{flex: 1}}> <BarcodeScanner style={{flex: 1}} onBarcodeRead={({data, type}) => { // handle your scanned barcodes here! // as an example, we show an alert: Alert.alert(`Barcode ‘${data}’ of type ‘${type}’ was scanned.`); }} onException={exceptionKey => { // check instructions on Github for a more detailed overview of these exceptions. switch (exceptionKey) { caseException.NO_PLAY_SERVICES: // tell the user they need to update Google Play Services caseException.LOW_STORAGE: // tell the user their device doesn’t have enough storage to fit the barcode scanning magic caseException.NOT_OPERATIONAL: // Google’s barcode magic is being downloaded but is not yet operational. default: break; } }} focusMode={FocusMode.AUTO /* could also be TAP or FIXED */} barcodeType={BarcodeType.CODE_128 | BarcodeType.EAN_13 | BarcodeType.EAN_8 /* replace with ALL for all alternatives */} /> </View> ); } } AppRegistry.registerComponent(‘BarcodeApp’, () =>BarcodeApp);

Properties

  • onBarcodeRead

Will call the specified method when a barcode is detected in the camera’s view. The event contains data (barcode value) and type (barcode type). The following barcode types can be recognized:

BarcodeFormat.UPC_A BarcodeFormat.UPC_E BarcodeFormat.EAN_13 BarcodeFormat.EAN_8 BarcodeFormat.RSS_14 BarcodeFormat.CODE_39 BarcodeFormat.CODE_93 BarcodeFormat.CODE_128 BarcodeFormat.ITF BarcodeFormat.CODABAR BarcodeFormat.QR_CODE BarcodeFormat.DATA_MATRIX BarcodeFormat.PDF_417

  • torchMode

Values: on, off (default) Use the torchMode property to specify the camera torch mode.

  • cameraType

Values: back (default), front

Use the camera Type property to specify the camera to use. If you specify the front camera, but the device has no front camera the back camera is used.

Conclusion

React Native Barcode scanner offers a great facility for scanning barcodes. In today’s increasingly commercialized environment barcode scanning facility has become a must-have feature for every smartphone. We have thus brought you the very positive aspects of React Native Barcode Scanner and its associated ‘know-how’.

For more information feel free to contact our Metizsoft team. We are mobile developers and build mobile apps through react native framework.

Read More:

React Native Firebase Integration
React Native DOC Scanner Only iPhone
React Native Image Crop Picker Android
npm react-native-qrcode-scanner react native barcode generator react native barcode scanner expo react-native-barcode-scanner-google github react-native-smart-barcode
568 Views
Twitter
Facebook
Pinterest
Linkedin
AboutChetan Patel
Director at Metizsoft Solutions, Chetan Sheladiya today stands at the top of a leading Mobile Application Development company, which further specializes in Online Business Marketing, Social Media Marketing, and Web Development, amongst other areas. A tech-lover at heart, Chetan has had more than a decade's worth of experience, dealing with hundreds of projects, and creating a bunch of unique IT solutions along the way. His other interest lies in sharing his ideas and opinions with people as passionate about technology, as he is. You can find his thoughts expressed on LinkedIn, Twitter, and Facebook.
Complete Guide of React Native Document Scanner Library (Only iPhone)Complete Guide of React Native Document Scanner Library (Only iPhone)February 18, 2019
Top 5 Ways to Make Your E-Commerce Website ADA Compliant!February 28, 2019Top 5 Ways to Make Your E-Commerce Website ADA Compliant!

Related Posts

In:Mobile Apps

How to Find the Most Qualified and Skilled Team for your App Development?

July 24, 2021
In:Mobile Apps

How to Find the Most Qualified and Skilled Team for your App Development?

July 24, 2021

When you plan to develop an online app, there are several steps to follow, and coming up with a business idea is the easiest...

In:Mobile Apps

What is The Future of iOS App Development For 2021?

August 16, 2021
In:Mobile Apps

What is The Future of iOS App Development For 2021?

August 16, 2021

Smart mobile phones are stimulating and booming as one of the most significant technological revolutions in the present...

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Loading

CATEGORIES

:

  • Business
  • Cloud Computing Services
  • E-Commerce
  • Infographics
  • Internet of Things (IOT
  • Knowledge Center
  • Marketing
  • Mobile Apps
  • News And Events
  • On-Demand Technology
  • Our Culture
  • Web Development
RELATED POSTS
  • How is Artificial Intelligence Forging the Fintech Industry in 2023?
    March 23, 2023
  • A Complete Guide on Shopify Polaris – Definition, Use Case & Features Explained!
    March 13, 2023
  • EV Charging Mobile Application – All That You Must Know!
    February 23, 2023
  • Step-by-Step Guide to Using Meta Objects in the Shopify Store!
    February 17, 2023

let's work

NEED CREATIVE

Get A Quote


Loading

AHMEDABAD

A-802, Ganesh Plaza,
Navrangpura,
Ahmedabad- 380009
+91 96646 18619 (Sales)
+91 98989 64818 (HR)

NIKOL

501, Gravity Retail & Work Spaces, Nr. Sahajanad Green Party Plot, Nikol,
Ahmedabad – 380038

+91 96646 18619 (Sales)
+91 93766 37955 (Sales)
+91 98989 64818 (HR)

MUMBAI

47, Shanti Bhavan,
Dhiruabhai Parekh marg,
Kalbadevi,
Mumbai – 400002
+91 93766 37955

USA

71 Hosmer Street Acton,
MA, 01720
+1 (845) 418-5206

UK

17 A, Massey Close,
Oxford, OX3 7HY
(+44) 07367 805500

SINGAPORE

#3-91,26 Tanglin Halt Road,
Singapore – 14106
+65 (849) 773-79

Skype metizsoft

Email hello@metizsoft.com

WhatsApp +1 (845) 418-5206
United States+1 (845) 418-5206

Services

  • ENTERPRISE MOBILITY
  • CROSS-PLATFORM APPS
  • E-COMMERCE & CMS
  • FRONT-END DEVELOPMENT
  • BACK-END DEVELOPMENT
  • UI/UX DESIGN SERVICES

Solutions

  • DESIGN & DEVELOPMENT
  • ON-DEMAND SOLUTIONS
  • DIGITAL MARKETING
  • API INTEGRATIONS
  • SUPPORT & TESTINGS

Hire Developers

  • SHOPIFY DEVELOPER
  • MAGENTO DEVELOPER
  • REACT.JS DEVELOPER
  • NODE.JS DEVELOPER
  • REACT NATIVE DEVELOPER
  • LARAVEL DEVELOPER

Industries

  • STARTUPS
  • HEALTH CARE
  • TRAVEL & HOSPITALITY
  • BANKING & FINANCES
  • LOGISTIC
  • FOOD

Company

    • CAREERS
    • ABOUT US

    • LIFE AT METIZSOFT

    • AWARED & CERTIFICATION
    • BLOG
    • CONTACT US

Our Google Ratings
Our Glassdoor Ratings
Our Clutch Ratings
Our GoodFirms Ratings

 ÂĐ Copyright 2022-2023 Metizsoft Solutions Private Limited All rights reserved.

dinner-time-team-metizsoft-at-mehmaan

dinner-time-team-metizsoft-at-mehmaan


creative-rangoli-by-team-metizsoft

creative-rangoli-by-team-metizsoft




 

all-metiz-girls-in-celebration-mood

all-metiz-girls-in-celebration-mood


Connect With Us!
Telephone

   (+91) 93766 37955 (Sales)

         (+91) 96646 18619 (Sales)

         (+91) 98989 64818 (HR)

   +1 (845) 418-5206  (Toll-Free)

         +44 (073) 6780 5500

    +65 (849) 773-79

(If we don’t pick up, drop an inquiry. We will contact you.)

Email

hello@metizsoft.com