Closed Karsens closed 5 years ago
you're a saint.
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.
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:
compile project(':react-native-touch-id')
include ':react-native-touch-id' project(':react-native-touch-id').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-touch-id/android')