Skip to content

Conversation

@coolsoftwaretyler
Copy link
Contributor

Working on #160. Draft for now.

@changeset-bot
Copy link

changeset-bot bot commented Dec 4, 2025

🦋 Changeset detected

Latest commit: 62c1933

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@infinitered/react-native-mlkit-barcode-scanning Minor
example-app Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coolsoftwaretyler coolsoftwaretyler changed the title wip: copied module structure over, started working on types wip: barcode scanning Dec 5, 2025
Copy link
Collaborator

@frankcalise frankcalise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! After you review my comments and go through the Android stuff let's meet again to just align on a few of the comments - but I think it's pretty much there.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm I just noticed that the directory structure here doesn't match the other modules. This one defaulted to java/expo/modules/... when we should match the other modules probably, red.infinte.reactnativemlkit.barcodescanning.

import ExpoModulesCore
import MLKitBarcodeScanning

struct RNMLKitBarcodeScannerOptionsRecord: Record {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this one be named ...ScanningOptionsRecord?

I realize the Android files are Scanner in some places, probably should change that up too.

The MLKit docs reference it as BarcodeScanning so I think let's match that? Originally I had assumed it matched DocumentScanner - but my memory served me wrong and they are actually DocumentScanner and BarcodeScanning

Anyway let's discuss and align on this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah this was hard to keep straight, but I agree - we should align everything with the MLKit docs if we can.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this one is aligned with docs, I think. Google lists the options as: BarcodeScannerOptions

@coolsoftwaretyler coolsoftwaretyler changed the title wip: barcode scanning feat: barcode scanning Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants