!!IMPORTANT!!
This repository is deprecated. Please use our new react-native sample bridge: https://github.com/business-service-solution-gmbh/id24.tr-react-sample
Ocr for Identify sdk in the React Native
npm install react-native-identify-ocrimport { 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>
);
// ...See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library