barcode-capture-rn

barcode-capture-rn is a skill for Claude Code from Scandit/skills. It costs 76 tokens per session (1,402 once invoked), scanned A, original, Apache-2.0.

A guide for adding single-barcode scanning to React Native apps using Scandit's Barcode Capture tools. React Native lets developers build mobile apps with JavaScript or TypeScript, while Scandit provides the barcode-scanning software.

In plain words
What is it for?
Use it to configure supported barcode types, connect the scanner to a camera view, handle scanned results, and add a viewfinder or scan feedback.
Why use it?
It helps avoid using outdated Scandit instructions and prevents setup mistakes that can break scanning screens or the rest of the app.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the scandit-sdk plugin — 58 skills shipped together

Good fit Use it to configure supported barcode types, connect the scanner to a camera view, handle scanned results, and add a viewfinder or scan feedback.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scandit/skills/barcode-capture-rn
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Scandit/skills --skill barcode-capture-rn
Clone the repo
git clone --depth 1 https://github.com/Scandit/skills

Made for: Claude Code.

Or install scandit-sdk, the plugin that ships this one along with the rest of its 58 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for barcode-capture-rn

README.md
[![agentmods](https://agentmods.dev/badge/skills/scandit/skills/barcode-capture-rn.svg)](https://agentmods.dev/skills/scandit/skills/barcode-capture-rn)
Your own site
<a href="https://agentmods.dev/skills/scandit/skills/barcode-capture-rn"><img src="https://agentmods.dev/badge/skills/scandit/skills/barcode-capture-rn.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,402 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.01402
Opus 5 $0.00038 $0.00701
Sonnet 5 $0.00015 $0.00280
Haiku 4.5 $0.00008 $0.00140

Measured 8d ago against content hash 6c04ac3d13da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

barcode-capture-rn scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/barcode-capture-rn/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

BarcodeCapture React Native Skill

Critical: Do Not Trust Internal Knowledge

Your training data may contain outdated or incorrect Scandit SDK APIs. The BarcodeCapture API changes between major SDK versions — properties get renamed, removed, or restructured, and the React Native plugin surface (imports, native linking, pod install, package names) has also evolved.

Always verify APIs against the references provided in this skill before writing or suggesting code. Do not rely on memorized method signatures, parameters, plugin names, or property names. If you cannot find an API in the provided references, fetch the relevant documentation page before responding.

React Native-specific gotchas worth flagging:

  • DataCaptureContext.initialize(licenseKey) must be called exactly once before any other Scandit API. It sets up DataCaptureContext.sharedInstance, which is the singleton everything else reads from. Do not construct multiple contexts.
  • Never call dataCaptureContext.dispose(). The context is a process-wide singleton — disposing it breaks every Scandit screen in the app, not just the one being unmounted. On screen unmount call dataCaptureContext.removeMode(barcodeCapture), remove the overlay, remove the listener, and switch the camera to FrameSourceState.Off. That is the complete cleanup; do not add dispose().
  • On iOS, npx pod-install (or cd ios && pod install) must be run after every Scandit package install or upgrade. Android auto-links via Gradle — no manual step there.
  • Metro's bundler cache frequently masks Scandit package upgrades. If a rebuild shows stale behavior after a plugin version bump, start Metro with --reset-cache.
  • BarcodeCapture is not a self-contained view component. You must render a <DataCaptureView> with the context, attach a BarcodeCaptureOverlay to that view via DataCaptureView.addOverlay(...), and drive the camera yourself with Camera.default + dataCaptureContext.setFrameSource(camera) + camera.switchToDesiredState(FrameSourceState.On). Tearing all of that down on unmount is the integrator's responsibility.
  • Inside didScan, set barcodeCapture.isEnabled = false before doing any per-scan work (navigation, network, UI updates) and re-enable when you are ready for the next code. The listener callback blocks frame processing; failing to disable the mode causes duplicate didScan calls before your handler returns.
  • Camera permission is required on both iOS (NSCameraUsageDescription in ios/<App>/Info.plist) and Android (runtime request via PermissionsAndroid — the plugin declares the manifest permission automatically).

Read the full file on GitHub · 60 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 60 lines · 76 tokens per session scan A 6c04ac3d13da

Subscribe to this mod's changes

barcode-capture-rn is a skill published in the GitHub repository Scandit/skills (19 stars, last pushed 6d ago), licensed Apache-2.0. It adds 76 tokens to every session and 1,402 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

expo-native-ui

Framework (OSS). Build beautiful, native-feeling Expo screens. Covers Apple HIG styling, semantic colors, native controls, SF Symbols, media, animations, visual effects, gradients, storage, and responsive layout. For routing and navigation, use the expo-router skill.

expo/skills · 58 tokens

expo-web-to-native

Framework (OSS). Migrate an existing web React app to a native iOS/Android app with Expo. Use when the user wants to turn a website into a mobile app, port a Next.js/Vite/CRA React codebase to React Native, reuse web code on native incrementally, or asks how web idioms (the DOM, CSS, React Router, localStorage…

expo/skills · 111 tokens

truesheet-usage

Consumer-side guide for integrating @lodev09/react-native-true-sheet into a React Native app. Use this skill whenever the user wants to add, configure, control, or debug a bottom sheet using TrueSheet — including ref-based sheets, named global sheets, web support with TrueSheetProvider/useTrueSheet, React Navigation…

lodev09/react-native-true-sheet · 169 tokens

building-ui

Complete guide for building beautiful apps with Expo Router. Covers fundamentals, styling, components, navigation, animations, patterns, and native tabs.

Intelligent-Internet/ii-agent · 30 tokens

use-dom

Use Expo DOM components to run web code in a webview on native and as-is on web. Migrate web code to native incrementally.

Intelligent-Internet/ii-agent · 32 tokens

assess-react-native-migration

Assesses whether and how an existing mobile product should migrate to React Native. Use when auditing one or more product repositories for migration readiness, including products whose iOS, Android, and other clients live in separate directories or repositories; choosing brownfield, greenfield, or a checkpoint-based…

callstackincubator/agent-skills · 104 tokens