Linking native dependencies
For react-native version 0.59 and below, it is necessary to link the native libraries into react-native.
The following bash command will automatically link react-native-cardverify into your react-native app.
$ react-native link react-native-cardverify
If instead, you want to manually link react-native-cardverify, perform the following steps.
- 1.In XCode, in the project navigator, right click
Add Files to [your project's name]
- 2.Go to
- 3.In XCode, in the project navigator, select your project. Add
libRNCardVerify.ato your project's
Link Binary With Libraries
- 4.Run your project
- 1.Insert the following lines inside the dependencies block in
- 2.Append the following lines to
android/settings.gradle:include ':react-native-cardverify'project(':react-native-cardverify').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-cardverify/android')
import com.getbouncer.RNCardVerifyPackage;to the imports at the top of the file
new RNCardVerifyPackage()to the list returned by the