Skip to content

Do not use deprecated MapBuilder but use mapOf instead#3619

Closed
cortinico wants to merge 1 commit intomrousavy:mainfrom
cortinico:main
Closed

Do not use deprecated MapBuilder but use mapOf instead#3619
cortinico wants to merge 1 commit intomrousavy:mainfrom
cortinico:main

Conversation

@cortinico
Copy link
Copy Markdown

What

While looking at the source code of this library, I've realized you still use a deprecated MapBuilder class.
If you're using Kotlin, the reccomendation is to use mapOf from Kotlin instead:
https://github.com/facebook/react-native/blob/8f0713fd4bfdb8ece5616c9aa47a20ee381b792e/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/MapBuilder.kt#L11

@vercel
Copy link
Copy Markdown

vercel Bot commented Sep 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
react-native-vision-camera Ready Ready Preview Comment Sep 2, 2025 10:33am

@cortinico
Copy link
Copy Markdown
Author

This is also a nice-to-have, build would keep on working with the old API still

@mrousavy
Copy link
Copy Markdown
Owner

Hey - thanks for your PR, I really appreciate it! And sorry for not replying sooner, I was hyper-focused on VisionCamera V5.

I believe this is now obsolete, as VisionCamera V5 is on Nitro now - but this would've been a nice fix for the time. I dont know why I didnt see this PR back in September

@mrousavy mrousavy closed this Apr 21, 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.

2 participants