Skip to content

Reader not working #2

@anudit

Description

@anudit

Hey, I am trying to use the package with RN@0.79.5 and expo@53.0.20, but nothing gets logged/recognized on any kind of passport.

import { StyleSheet, View, Platform } from 'react-native';
import MrzReaderView, {
  CameraSelector,
  DocType,
} from 'react-native-mrz-reader';

export default function App() {

  return (
    <View style={styles.container}>
      <MrzReaderView
        cameraSelector={CameraSelector.Back}
        docType={DocType.Passport}
        style={styles.box}
        onMRZRead={(mrz) => {
          console.log(mrz);
        }}
      />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
  },
  box: {
    width: '100%',
    height: '100%',
  },
});

Testing on a real android device.

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions