From e7d4166311703d02c2a1d1d19084e8301ddd4410 Mon Sep 17 00:00:00 2001 From: Saurabh Chavan Date: Thu, 22 Oct 2026 22:25:52 +0530 Subject: [PATCH] fix: react-native-vision-camera-barcode-scanner is excluded on ios --- CHANGELOG.md | 2 ++ react-native.config.js | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 432c7c4cb..b990162f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - We fixed an issue on iOS where a deep link that cold started the app was not delivered to React Native, causing `Linking.getInitialURL()` to return `null`. - We removed some unused Android Permissions coming in from Manifest mergers. +- We excluded react-native-vision-camera-barcode-scanner from iOS. The Barcode Scanner widget only uses it on Android; on iOS it uses Apple's built-in scanner from react-native-vision-camera. +- This version of Native Template is required for the Barcode Scanner widget version 4.6.0 or above (Native Mobile Resources version 12.6.0 or above). ## [19.1.6] - 2026-09-16 diff --git a/react-native.config.js b/react-native.config.js index c9991bd53..49ed43b1b 100644 --- a/react-native.config.js +++ b/react-native.config.js @@ -1,4 +1,11 @@ module.exports = { dependencies: { + 'react-native-vision-camera-barcode-scanner': { + platforms: { + // Android only: on iOS the Barcode Scanner widget uses Apple's scanner from react-native-vision-camera. + // This also keeps Google ML Kit, which has no arm64 iOS simulator support, out of the iOS app. + ios: null, + }, + }, }, };