Android Setup
Reference for setting up Android for use with the Link React Native SDK
Android Setup
Register your app id
- Log in to the Plaid dashboard and go to Developers -> API.
- Next to Allowed Android package names, click Configure, then Add New Android Package Name.
- Enter your package name, for example
com.plaid.example
. - Click Save Changes. You may be prompted to re-enter your password.
Add PlaidPackage to your application
- Go to
android/app/src/main/java/<AppName>/MainApplication.java
and - Add
import com.plaid.PlaidPackage;
to the imports section. - Add
packages.add(new PlaidPackage());
toList<ReactPackage> getPackages();
.
Configure Gradle
- Go to the project level
android/app/build.gradle
. - Make sure you are using a
minsdkversion
>= 21. - Add the following dependencies:
1dependencies {2 ...3 implementation project(':react-native-plaid-link-sdk')
- Go to
android/settings.gradle
. - Add the following lines:
1include ':react-native-plaid-link-sdk'2project(':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.