Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Identify24/react-native-identify-ocr

!!IMPORTANT!!

This repository is deprecated. Please use our new react-native sample bridge: https://github.com/business-service-solution-gmbh/id24.tr-react-sample

react-native-identify-ocr

Ocr for Identify sdk in the React Native

Installation

npm install react-native-identify-ocr

Usage

import { processImage } from 'react-native-identify-ocr';

// ...
//You can use those types 
  type IdentOcrTypes = 'FrontId' | 'BackId' | 'PassportMrzKey';
  
  const [result, setResult] = React.useState<String | undefined>();

  React.useEffect(() => {
    const getData = async () => {
      const data: any = await processImage('some·base64·data', 'FrontId');
      console.log(data);

      setResult(data);
    };
    getData();
  }, []);
  return (
    <View style={styles.container}>
      <Text style={{ color: 'white' }}>Result: {result?.toString()}</Text>
    </View>
  );

// ...

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •