react-native-plaid-link-sdk 11.0.0 → 11.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/android/src/main/AndroidManifest.xml +1 -1
- package/dist/PlaidLink.js +3 -2
- package/dist/Types.d.ts +1 -1
- package/dist/Types.js +1 -1
- package/ios/RNLinksdk.m +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -145,6 +145,7 @@ You can also use the `usePlaidEmitter` hook in react functional components:
|
|
|
145
145
|
|
|
146
146
|
| Plaid SDK Version | Min React Native Version | Android SDK | Android Min Version | Android Compile Version| iOS SDK | iOS Min Version | Status |
|
|
147
147
|
|-------------------|--------------------------|-------------|---------------------|------------------------|---------|-----------------|-------------------------------|
|
|
148
|
+
| 11.0.1 | * | [4.0.0+] | 21 | 33 | >=5.0.0 | 14.0 | Active, supports Xcode 15.0.1 |
|
|
148
149
|
| 11.0.0 | * | [4.0.0+] | 21 | 33 | >=5.0.0 | 14.0 | Active, supports Xcode 15.0.1 |
|
|
149
150
|
| 10.8.0 | >= 0.66.0 | [3.14.0+] | 21 | 33 | >=4.7.0 | 11.0 | Active, supports Xcode 14 |
|
|
150
151
|
| 10.7.0 | >= 0.66.0 | [3.14.0+] | 21 | 33 | >=4.6.4 | 11.0 | Active, supports Xcode 14 |
|
package/dist/PlaidLink.js
CHANGED
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import React, { useEffect } from 'react';
|
|
11
11
|
import { NativeEventEmitter, NativeModules, Platform, TouchableOpacity, } from 'react-native';
|
|
12
|
-
import { LinkIOSPresentationStyle, } from './Types';
|
|
12
|
+
import { LinkIOSPresentationStyle, LinkLogLevel, } from './Types';
|
|
13
13
|
/**
|
|
14
14
|
* A hook that registers a listener on the Plaid emitter for the 'onEvent' type.
|
|
15
15
|
* The listener is cleaned up when this view is unmounted
|
|
@@ -29,9 +29,10 @@ export const usePlaidEmitter = (LinkEventListener) => {
|
|
|
29
29
|
}, []);
|
|
30
30
|
};
|
|
31
31
|
export const openLink = (props) => __awaiter(void 0, void 0, void 0, function* () {
|
|
32
|
+
var _a;
|
|
32
33
|
let config = props.tokenConfig;
|
|
33
34
|
if (Platform.OS === 'android') {
|
|
34
|
-
NativeModules.PlaidAndroid.startLinkActivityForResult(config.token, config.noLoadingState, config.logLevel, (result) => {
|
|
35
|
+
NativeModules.PlaidAndroid.startLinkActivityForResult(config.token, config.noLoadingState, (_a = config.logLevel) !== null && _a !== void 0 ? _a : LinkLogLevel.ERROR, (result) => {
|
|
35
36
|
if (props.onSuccess != null) {
|
|
36
37
|
props.onSuccess(result);
|
|
37
38
|
}
|
package/dist/Types.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare enum PlaidProduct {
|
|
|
30
30
|
PAYMENT_INITIATION = "payment_initiation",
|
|
31
31
|
TRANSACTIONS = "transactions"
|
|
32
32
|
}
|
|
33
|
-
declare enum LinkAccountType {
|
|
33
|
+
export declare enum LinkAccountType {
|
|
34
34
|
CREDIT = "credit",
|
|
35
35
|
DEPOSITORY = "depository",
|
|
36
36
|
INVESTMENT = "investment",
|
package/dist/Types.js
CHANGED
|
@@ -24,7 +24,7 @@ export var PlaidProduct;
|
|
|
24
24
|
PlaidProduct["PAYMENT_INITIATION"] = "payment_initiation";
|
|
25
25
|
PlaidProduct["TRANSACTIONS"] = "transactions";
|
|
26
26
|
})(PlaidProduct || (PlaidProduct = {}));
|
|
27
|
-
var LinkAccountType;
|
|
27
|
+
export var LinkAccountType;
|
|
28
28
|
(function (LinkAccountType) {
|
|
29
29
|
LinkAccountType["CREDIT"] = "credit";
|
|
30
30
|
LinkAccountType["DEPOSITORY"] = "depository";
|
package/ios/RNLinksdk.m
CHANGED