react-native-plaid-link-sdk 10.0.0 → 10.1.0
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 +2 -1
- package/android/.gradle/6.9/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +1 -1
- package/android/src/main/AndroidManifest.xml +1 -1
- package/dist/PlaidLink.d.ts +0 -1
- package/dist/PlaidLink.js +1 -15
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/ios/RNLinksdk.m +1 -1
- package/package.json +1 -1
- package/react-native-plaid-link-sdk.podspec +1 -1
package/README.md
CHANGED
|
@@ -165,7 +165,8 @@ When upgrading from a previous major version of this library, see the following
|
|
|
165
165
|
# Version compatibility
|
|
166
166
|
| React Native SDK | Android SDK | iOS SDK | Status |
|
|
167
167
|
|---|---|---|---|
|
|
168
|
-
|
|
|
168
|
+
| 10.x.x | [3.10.1+] | >=4.1.0 | Active, supports Xcode 14 |
|
|
169
|
+
| 9.x.x | [3.10.1+] | >=4.1.0 | Deprecated, supports Xcode 14 |
|
|
169
170
|
| 8.x.x | [3.10.1+] | >=3.1.0 | Deprecated, supports Xcode 14 |
|
|
170
171
|
| 7.x.x | [3.2.0+] | >=2.0.11 | Deprecated, supports Xcode <= 13 |
|
|
171
172
|
| 6.x.x | [3.0.0-3.2.0) | >=2.0.1 | Deprecated |
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
package/android/build.gradle
CHANGED
|
@@ -64,7 +64,7 @@ repositories {
|
|
|
64
64
|
|
|
65
65
|
dependencies {
|
|
66
66
|
implementation "com.facebook.react:react-native:+"
|
|
67
|
-
implementation "com.plaid.link:sdk-core:3.
|
|
67
|
+
implementation "com.plaid.link:sdk-core:3.11.0"
|
|
68
68
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
69
69
|
implementation "com.jakewharton.rxrelay2:rxrelay:2.1.1"
|
|
70
70
|
}
|
package/dist/PlaidLink.d.ts
CHANGED
|
@@ -8,5 +8,4 @@ import { LinkEventListener, PlaidLinkComponentProps, PlaidLinkProps } from './Ty
|
|
|
8
8
|
export declare const usePlaidEmitter: (LinkEventListener: LinkEventListener) => void;
|
|
9
9
|
export declare const openLink: (props: PlaidLinkProps) => Promise<void>;
|
|
10
10
|
export declare const dismissLink: () => void;
|
|
11
|
-
export declare const useDeepLinkRedirector: () => void;
|
|
12
11
|
export declare const PlaidLink: (props: PlaidLinkComponentProps) => JSX.Element;
|
package/dist/PlaidLink.js
CHANGED
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import React, { useEffect } from 'react';
|
|
11
|
-
import {
|
|
11
|
+
import { NativeEventEmitter, NativeModules, Platform, TouchableOpacity, } from 'react-native';
|
|
12
12
|
/**
|
|
13
13
|
* A hook that registers a listener on the Plaid emitter for the 'onEvent' type.
|
|
14
14
|
* The listener is cleaned up when this view is unmounted
|
|
@@ -72,25 +72,11 @@ export const dismissLink = () => {
|
|
|
72
72
|
NativeModules.RNLinksdk.dismiss();
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
export const useDeepLinkRedirector = () => {
|
|
76
|
-
const _handleListenerChange = (event) => {
|
|
77
|
-
if (event.url !== null && Platform.OS === 'ios') {
|
|
78
|
-
NativeModules.RNLinksdk.continueFromRedirectUriString(event.url);
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
useEffect(() => {
|
|
82
|
-
const listener = Linking.addEventListener('url', _handleListenerChange);
|
|
83
|
-
return function cleanup() {
|
|
84
|
-
listener.remove();
|
|
85
|
-
};
|
|
86
|
-
}, []);
|
|
87
|
-
};
|
|
88
75
|
export const PlaidLink = (props) => {
|
|
89
76
|
function onPress() {
|
|
90
77
|
var _a;
|
|
91
78
|
(_a = props.onPress) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
92
79
|
openLink(props);
|
|
93
80
|
}
|
|
94
|
-
useDeepLinkRedirector();
|
|
95
81
|
return <TouchableOpacity onPress={onPress}>{props.children}</TouchableOpacity>;
|
|
96
82
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openLink, dismissLink,
|
|
1
|
+
import { openLink, dismissLink, usePlaidEmitter, PlaidLink } from './PlaidLink';
|
|
2
2
|
export * from './Types';
|
|
3
3
|
export default PlaidLink;
|
|
4
|
-
export { PlaidLink, openLink, dismissLink,
|
|
4
|
+
export { PlaidLink, openLink, dismissLink, usePlaidEmitter, };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openLink, dismissLink,
|
|
1
|
+
import { openLink, dismissLink, usePlaidEmitter, PlaidLink, } from './PlaidLink';
|
|
2
2
|
export * from './Types';
|
|
3
3
|
export default PlaidLink;
|
|
4
|
-
export { PlaidLink, openLink, dismissLink,
|
|
4
|
+
export { PlaidLink, openLink, dismissLink, usePlaidEmitter, };
|
package/ios/RNLinksdk.m
CHANGED
package/package.json
CHANGED