Skip to content
Plaid Link for React Native
Objective-C Kotlin JavaScript Java Ruby Makefile
Branch: master
Clone or download
Latest commit 23f4082 Dec 19, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
android v2.0.4 (#26) Dec 19, 2019
ios v2.0.1 (#19) Dec 17, 2019
upgrade_notes v2.0.0 (#13) Dec 9, 2019
.eslintignore Initial commit. Nov 5, 2019
.eslintrc.js Initial commit. Nov 5, 2019
.gitattributes Initial commit. Nov 5, 2019
.gitignore v2.0.0 (#13) Dec 9, 2019
.prettierignore Initial commit. Nov 5, 2019
.prettierrc Initial commit. Nov 5, 2019
LICENSE Create LICENSE Nov 5, 2019
Makefile v2.0.0 (#13) Dec 9, 2019
PlaidLink.js v2.0.3 (#23) Dec 17, 2019 v2.0.3 (#23) Dec 17, 2019
index.js Fix handlePress, export openLink (#2) Dec 4, 2019
package.json v2.0.4 (#26) Dec 19, 2019
react-native-plaid-link-sdk.podspec Initial commit. Nov 5, 2019

Getting Started

In your react-native project directory:

npm install --save react-native-plaid-link-sdk


Add Plaid to your project’s Podfile as follows (likely located at ios/Podfile). The current minimum version supported is 1.1.25.

pod 'Plaid', '~> 1.1.25'

Then install your cocoapods dependencies:

cd ios && pod install && cd ..

Add a Run Script build phase (after the [CP] Embed Pods Frameworks step) to your target as described in Plaid Link for iOS documentation. This strips simulator symbols from App Store release builds.

That's it if using a recent react-native version with autolinking support.

Manual Integration

If using a version of react-native without autolinking support, then you will need to:

`react-native link react-native-plaid-link-sdk`

followed by

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-linksdk and add RNLinksdk.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNLinksdk.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<



Inside the tag add:

<activity android:name="" />

<activity android:name="">
  <intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW" />

    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />

      android:scheme="yourappname" />
  android:value="YOUR KEY" />

To register your redirect uri:

  1. Log into your Plaid Dashboard
  2. Select API under Team Settings in the top navigation bar
  3. Click configure then Add New Uri then enter your Uri (for example yourAppName://redirect)
  4. Click Save Changes


Add import com.plaid.PlaidPackage; on the imports section

Add packages.add(new PlaidPackage()); in List<ReactPackage> getPackages();

Add Plaid.create(this); in public void onCreate() along with import; at the top of the file.


Add implementation project(':react-native-plaid-link-sdk') and implementation '' in the dependencies block



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')


In your app:

import Text from 'react-native';
import PlaidLink from 'react-native-plaid-link-sdk';
const MyPlaidComponent = () => {
  return (
     // Replace any of the following <#VARIABLE#>s according to your setup,
     // for details see
      publicKey='<# Your Public Key #>'
      clientName='<# Your Client Name #>'
      env='<# Environment #>'  // 'sandbox' or 'development' or 'production'
      product={['<# Product #>']}
      webviewRedirectUri = "yourAppName://redirect"
      onSuccess={data => console.log('success: ', data)}
      onExit={data => console.log('exit: ', data)}
      // Optional props
      countryCodes={['<# Country Code #>']}
      language='<# Language #>'
      userEmailAddress='<# User Email #>'
      userLegalName='<# User Legal Name #>'
      userPhoneNumber='<# User Phone Number #>'
      webhook='<# Webhook URL #>'
      <Text>Add Account</Text>

To receive onEvent callbacks:

The React Native Plaid module emits onEvent events throughout the account linking process — see details here. To receive these events in your React Native app, wrap the PlaidLink react component with the following in order to listen for those events:

import React from 'react';
import { Text, NativeEventEmitter, NativeModules } from 'react-native';
class PlaidEventContainer extends React.Component {
  componentDidMount() {
    const emitter = new NativeEventEmitter(Platform.OS === 'ios' ? NativeModules.RNLinksdk : NativeModules.PlaidAndroid);
    this._listener = emitter.addListener('onEvent', (e) => console.log(e));
  componentWillUnmount() {
    if (this._listener) {
  render() {
    return (
        clientName='##YOUR CLIENT NAME##'
        publicKey='#YOUR PUBLIC KEY##'
        onSuccess={data => console.log('success: ', data)}
        onExit={data => console.log('exit: ', data)}
        <Text>Add Account</Text>

Customizing the PlaidLink component

By default, PlaidLink renders a TouchableOpacity component. You may override the component used by passing component and componentProps. For example:

        clientName = "Component Test"
        publicKey = "##YOUR PUBLIC KEY##"
        products = {["transactions"]}
        env = "sandbox"
        component= {Button}
        componentProps = {{title: 'Add Account'}}
        onSuccess = {(result) => {console.log('Success: ', result)}}
        onError = {(result) => {console.log('Error: ', result)}}
        onCancelled = {(result) => {console.log('Cancelled: ', result)}}
        product = {["transactions"]}
        language = "en"
        countryCodes = {["US"]}
You can’t perform that action at this time.