Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'isSupported' of undefined #271

Open
sarray23 opened this issue Apr 23, 2020 · 5 comments
Open

TypeError: Cannot read property 'isSupported' of undefined #271

sarray23 opened this issue Apr 23, 2020 · 5 comments

Comments

@sarray23
Copy link

This error shows up only with android emulators (iOS works fine).

I already import TouchID from 'react-native-touch-id' in my RN project.

Any idea about this issue ?

@jagowm
Copy link

jagowm commented May 6, 2020

Hi, the same here, any update

@pke
Copy link

pke commented May 18, 2020

This also happens on devices without any such sensor.
The exported object is undefined in that case. It should however be on object, that returns false on isSupported.
The problems are here:
https://github.com/naoufal/react-native-touch-id/blob/master/TouchID.ios.js#L17
and here
https://github.com/naoufal/react-native-touch-id/blob/master/TouchID.android.js#L7

@sarray23
Copy link
Author

sarray23 commented Jun 9, 2020

No, since there's no updates in android folder of the project

@peng92055
Copy link

You need edit your MainApplication.java in android/app/src/main/**/
@OverRide
protected List getPackages() {
return Arrays.asList(
new AppMainReactPackage(),

  •        new FingerprintAuthPackage()
    );
    
    }

@sarray23
Copy link
Author

sarray23 commented Jul 2, 2020

This answer won't solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants