Skip to content

fix: make Text explicit#266

Open
RWOverdijk wants to merge 2 commits into
infinitered:mainfrom
RWOverdijk:patch-1
Open

fix: make Text explicit#266
RWOverdijk wants to merge 2 commits into
infinitered:mainfrom
RWOverdijk:patch-1

Conversation

@RWOverdijk

Copy link
Copy Markdown

Building failed with expo 56:

❌  (node_modules/@infinitered/react-native-mlkit-text-recognition/ios/RNMLKitTextRecord.swift:73:30)

  71 | }
  72 |
> 73 | func mapTextToRecord(_ text: Text) -> TextRecord {

My best guess is that some recent update (expo ui? that's relatively new) re-exports swift-ui, which has Text as well.

This change solved the build and I verified it works by scanning a label and getting the text.

@changeset-bot

changeset-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: af151ae

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

This PR includes changesets to release 1 package
Name Type
@infinitered/react-native-mlkit-text-recognition Patch

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

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.

1 participant