Closed letops closed 5 years ago
On iOS, the string to use for datamatrix is org.iso.DataMatrix
(available since iOS8 https://developer.apple.com/documentation/avfoundation/avmetadataobjecttypedatamatrixcode)
Per documentation, this issue should've been resolved by using Camera.constants.barCodeType
, but it doesn't work for me. See: https://github.com/react-native-community/react-native-camera/issues/1206
Please test it with the newest version of RNCamera and open a new issue if this error still occurs.
Expected behaviour
We should only have to set an array with the barcode types that we wish to detect, as the documentation explains:
[ 'aztec', 'code128', ...etc ]
Actual behaviour
This is not respected by iOS. In iOS you need to set the barcode types in a different manner, e.g.
[ 'org.iso.Aztec', 'org.iso.Code128', ...etc ]
, if you don't the app freezes and crashes.Environment
Some other findings
On ANDROID only:
On IOS only: (#613 is the only place where this is commented)