0.1.4 • Published 8 months ago

react-native-bank-sdk v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

react-native-bank-sdk

React Native wrapper around BankConnect library

Installation

Using yarn:

yarn add react-native-bank-sdk

or using npm:

npm install --save react-native-bank-sdk

Authentication

Open Android Studio and in the project level build.gradle file, add the repository URLs to all allprojects block.

maven {
    url "s3://risk-manager-android-sdk/artifacts"
    credentials(AwsCredentials) {
        accessKey = "<ACCESS_KEY>"
        secretKey = "<SECRET_KEY>"
    }
    content {
        includeGroup("in.finbox.bankconnect")
    }
}

Add the following values to local.properties

ACCESS_KEY=<ACCESS_KEY>
SECRET_KEY=<SECRET_KEY>
BC_SDK_VERSION=<BC_SDK_VERSION>

Configuration

Initialize the BankSdkModule inside the application class

// Initialize the Bank Connect SDK
BankSdkModule.initDi(this);

Usage

import BankSdk from 'react-native-bank-sdk';


// Build BankConnect
BankSdk.buildBankConnect(apiKey), linkId, startDate, endDate, bankName);
// Show BankConnect UI
BankSdk.showBankConnect((error: any) => {
    // error callback
  }, (entityId: any) => {
    // Success callback
  });