Coder Social home page Coder Social logo

blinkcard / blinkcard-react-native Goto Github PK

View Code? Open in Web Editor NEW
1.0 7.0 0.0 162 KB

AI-driven credit card scanning for cross-platform apps built with ReactNative.

Ruby 0.47% JavaScript 34.79% Objective-C 32.30% Shell 2.78% Java 29.66%
credit-card scanning card scanner sdk react-native reactnative machine-learning cross-platform android ios add-card new-payment-method

blinkcard-react-native's Issues

Reject when license key is invalid

Would it be possible to reject when a license key is invalid? That way we could handle the exception and fall back to some other UI rather than crashing the app.

Usage example with hooks in a functional component please?

Hello, I tried placing the sample component inside a functional react-native component but nothing happened. Can you pls give some equivalent sample of usage in functional comppnents or how to use the sample class component in a functional component pls?

Thanks!

Can I add a react-native button component to the Scanner ?

I'm doing a POC with a trial version and it works great. However, I tried to find a documentation to follow to implement this. But couldn't find one (with the methods and stuff). Had to look at example app and try to understand.

Is there any documentation with exposed methods rather than in the example app ?

And the other thing is, I have a requirement to add a button to the scanner screen, where user can click on that and navigate to a specific screen (stopping the scan midway). Is this possible ? Can I add a custom react-native button ?

TIA

Could not invoke BlinkCardAndroid.scanWithCamera

Hi, I'm currently facing this issue out of sudden. Not sure what's the issue here. Hope anyone can help me.
currently using @microblink/blinkcard-react-native @ v2.9.0

I tried to console.log the error at the catch. It doesn't appear anything.

startScan = async () => {
    let recognizer; 
    recognizer = new BlinkCardReactNative.BlinkCardRecognizer();
    recognizer.extractCvv = false;
    recognizer.extractIban = false;
    recognizer.extractExpiryDate = false;
    recognizer.extractOwner = false;
    recognizer.returnFullDocumentImage = true;

    if (recognizer) {
        try {
            // logger appear here
            const scanningResults = await BlinkCardReactNative.BlinkCard.scanWithCamera(
                new BlinkCardReactNative.BlinkCardOverlaySettings(),
                new BlinkCardReactNative.RecognizerCollection([recognizer]),
                licenseKey
            ).catch((error) => { 
              // no logger appear here.
              throw error;
            });
            // no logger appear after here.
            if (scanningResults.length > 0) {
                this.onResult(scanningResults[0]); // A function to insert into variable
            }
        } catch (error) {
            alert(JSON.stringify(error))
        }
    }
}

Could not invoke BlinkCardAndroid.scanWithCamera

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.