npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

raxon-barcode-scanner

v0.2.0

Published

Zebra, Honeywell and enterprise barcode scanner hook for React Native Expo apps

Downloads

1,515

Readme

raxon-barcode-scanner

Zebra, Honeywell ve benzeri kurumsal Android cihazlarda fiziksel barkod okuyucudan gelen veriyi React Native / Expo uygulamanıza aktaran hook tabanlı paket.

Özellikler

  • useBarcodeScanner hook ile basit entegrasyon
  • Zebra DataWedge profilini otomatik oluşturma / güncelleme
  • Honeywell Data Collection Intent API ile tarayıcı claim / release
  • Klavye gibi davranan (HID / keyboard-wedge) okuyucu desteği: tuş vuruşları tamponlanır, Enter/Tab ile tek barkod olarak yayınlanır ve UI'a sızmaz
  • Android 13+ broadcast receiver uyumluluğu
  • Expo Modules API ile autolinking

Kurulum

npm install raxon-barcode-scanner

Expo projelerinde development build veya expo prebuild gerekir. Expo Go içinde native modül çalışmaz.

npx expo prebuild
npx expo run:android

Kullanım

import { useCallback, useState } from 'react';
import { useBarcodeScanner } from 'raxon-barcode-scanner';

function ScannerScreen() {
  const [enabled, setEnabled] = useState(true);

  const onReadBarcode = useCallback((payload) => {
    console.log(payload.code, payload.symbology);
  }, []);

  const scanner = useBarcodeScanner(enabled, onReadBarcode);

  return (
    <>
      <Switch value={enabled} onValueChange={setEnabled} />
      <Text>{scanner.isListening ? 'Dinleniyor' : 'Kapalı'}</Text>
    </>
  );
}

Switch ve Text için react-native importunu eklemeyi unutmayın.

enabled değeri true olduğu sürece native dinleyici açık kalır. false yapıldığında dinleyici kapanır.

Gelişmiş ayarlar

useBarcodeScanner(enabled, onReadBarcode, {
  intentAction: 'com.myapp.barcode.ACTION',
  profileName: 'MyAppScanner',
  configureDataWedge: true,
  configureHoneywell: true,
  captureKeyboard: true,
});

| Seçenek | Varsayılan | Açıklama | | --- | --- | --- | | intentAction | com.raxon.barcode.ACTION | Barkod broadcast action (DataWedge / Honeywell) | | profileName | RaxonBarcodeScanner | DataWedge profil adı veya Honeywell profil adı | | configureDataWedge | true | Zebra cihazlarda profili otomatik yapılandır | | configureHoneywell | true | Honeywell cihazlarda tarayıcıyı otomatik claim et | | captureKeyboard | true | Klavye modundaki (HID) okuyucuları yakala |

configureDataWedge: false kullanın eğer DataWedge profilini MDM veya manuel olarak yönetiyorsanız. Bu durumda intentAction değerinin profildeki Intent Output action ile eşleşmesi gerekir.

configureHoneywell: false kullanın eğer Honeywell tarayıcı ayarlarını cihaz üzerinden veya MDM ile yönetiyorsanız. Bu durumda intentAction değerinin Data Intent action ile eşleşmesi gerekir.

Test projesi

Depodaki example uygulaması modülü test etmek içindir.

cd example
npm install
npm run android

Kök dizinden:

npm run open:android

Desteklenen cihazlar

  • Zebra TC serisi ve DataWedge yüklü cihazlar
  • Honeywell CT/CK/EDA serisi ve Data Collection servisi yüklü cihazlar
  • DataWedge veya Intent Output ile broadcast gönderen diğer kurumsal Android cihazlar
  • Klavye (HID / keyboard-wedge) modunda çalışan okuyucular ve el terminalleri

npm yayını

npm run build
npm publish --access public

Lisans

MIT