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

@czekaj/react-native-pdf417

v1.1.1

Published

Enhanced React-Native library for PDF417 barcode generation with custom row count and error correction support

Downloads

3

Readme

react-native-pdf417

React-Native library which allows you to generate a barcode in pdf417 format

🚀 Enhanced Fork: This is a fork of @reeq/react-native-pdf417 that adds advanced PDF417 customization features and comprehensive test coverage.

🆕 Additional Features

This fork adds support for:

  • Custom row count (rows prop) - Control barcode height by specifying the number of rows
  • Error correction level (errorCorrectionLevel prop) - Set error correction level (0-8) for improved barcode robustness
  • Comprehensive test suite - Unit tests for TypeScript interfaces and prop validation
  • Enhanced example app - Visual test suite demonstrating all features

Android pdf417 writer is based on zxing library https://github.com/zxing/zxing

Screenshots

Installation

npm install @czekaj/react-native-pdf417

or

yarn add @czekaj/react-native-pdf417

and

cd ios/
pod install

Usage

Basic Usage

import { Barcode } from '@czekaj/react-native-pdf417';

// ...

const { width: windowWidth } = useWindowDimensions();

<Barcode
  text="hello pdf417"
  style={{ height: windowWidth / 4, width: windowWidth }}
  onPress={() => {
    console.log('barcode pressed');
  }}
/>;

Advanced Usage with Custom Parameters

// Custom row count for specific barcode height
<Barcode
  text="Custom height barcode"
  rows={8}
  style={{ height: windowWidth / 3, width: windowWidth }}
  onPress={() => console.log('Custom rows barcode pressed')}
/>

// Enhanced error correction for better scanning reliability
<Barcode
  text="High reliability barcode"
  errorCorrectionLevel={6}
  style={{ height: windowWidth / 4, width: windowWidth }}
  onPress={() => console.log('High error correction barcode pressed')}
/>

// Combined custom parameters
<Barcode
  text="Fully customized barcode"
  rows={10}
  errorCorrectionLevel={4}
  style={{ height: windowWidth / 3, width: windowWidth }}
  onPress={() => console.log('Custom barcode pressed')}
/>

Props

Most of the default View props and:

  • text: text string you want to convert into barcode. Required
  • onPress: on barcode press event. Optional
  • rows: number of rows in the barcode (controls height). Optional
    • When set to 0 or not provided, rows are auto-calculated
    • Higher values create taller barcodes
  • errorCorrectionLevel: error correction level (0-8). Optional
    • Default: 2
    • Higher values provide better error recovery but may increase barcode size
    • Range: 0 (minimal) to 8 (maximum error correction)

Testing

This fork includes comprehensive test coverage:

# Run unit tests
npm test

# Run example app for visual testing
cd example
npm run ios
# or
npm run android

See TESTING.md for detailed testing instructions and guidelines.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Original library: @reeq/react-native-pdf417
Enhanced by: This fork adds advanced PDF417 customization and testing capabilities

Made with create-react-native-library