5.x to 6.x Migration Guide

Reference for migrating the Link React Native SDK from 5.x to 6.x

Summary of changes

This article provides a guide on how to upgrade a Plaid integration from the React Native 5.x SDK to the 6.x SDK.

Update Android Versions

Update your Android SDK dependency in your build.gradle file to version 3.0.1 or greater.

1
implementation 'com.plaid.link:sdk-core:3.0.1+'

Update iOS Versions

  1. Update your minimum deployment target to 11 or greater

    1
    platform :ios, '11.0'
  2. Update your Plaid pod dependency to 2.0.1 or greater.

    1
    pod 'Plaid', '~> 2.0.1'

Update Plaid Component

  • The payment_token prop has been removed so all tokens should be passed through the token prop
  • The oauthStateId prop has been removed and is no longer needed
  • Integrations using link_token must not use the oauthNonce or oauthRedirectUri props

(Optionally) Use the usePlaidEmitter Hook

In order to get onEvent callbacks you may now use the usePlaidEmitter Hook.

1
2
3
usePlaidEmitter((event) => {
console.log(event);
});