Android Setup

Reference for setting up Android for use with the Link React Native SDK

Android Setup

Register your app id
  1. Log in to the Plaid dashboard and go to Team Settings -> API.
  2. Next to Allowed Android package names, click Configure, then Add New Android Package Name.
  3. Enter your package name, for example com.plaid.example.
  4. Click Save Changes. You may be prompted to re-enter your password.
Add PlaidPackage to your application
  1. Go to android/app/src/main/java/<AppName>/MainApplication.java and
  2. Add import com.plaid.PlaidPackage; to the imports section.
  3. Add packages.add(new PlaidPackage()); to List<ReactPackage> getPackages();.
Configure Gradle
  1. Go to the project level android/app/build.gradle.
  2. Make sure you are using a minsdkversion >= 21.
  3. Add the following dependencies:
1
2
3
dependencies {
...
implementation project(':react-native-plaid-link-sdk')
  1. Go to android/settings.gradle.
  2. Add the following lines:
1
2
include ':react-native-plaid-link-sdk'
project(':react-native-plaid-link-sdk').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-plaid-link-sdk/android')

Now your React Native application is linked to the Plaid React Native SDK for Android development. Next Open Link.