naoufal / react-native-touch-id

React Native authentication with the native Touch ID popup.
https://www.npmjs.com/package/react-native-touch-id
1.48k stars 477 forks source link

Linking doesn't update MainApplication.java #188

Closed Karsens closed 5 years ago

Karsens commented 5 years ago

I had to manually add these lines to MainApplication.java after linking.

import com.rnfingerprint.FingerprintAuthPackage;

and new FingerprintAuthPackage(), (to getPackages())

I had to find out how the package is called by running the example and linking there, because in my project linking is broken. In the example, it works (after some trouble).

I think it would be better if you also add the manual way to link this project to your app for Android, not just for iOS because linking doesn't work for everyone.

Linking manually on Android is not that hard, just do the above, and:

ncmd commented 5 years ago

you're a saint.

zibs commented 5 years ago

Are you sure? I've just done this on 4.3.0 and 4.4.0. Running yarn add react-native-touch-id and then running react-native link linked everything fine on my end.

Let me know if this didn't work for you.