react-native-plaid-link-sdk 11.8.0 → 11.8.2

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 CHANGED
@@ -179,6 +179,8 @@ While these older versions are expected to continue to work without disruption,
179
179
 
180
180
  | Plaid SDK Version | Min React Native Version | Android SDK | Android Min Version | Android Compile Version| iOS SDK | iOS Min Version | Status |
181
181
  |-------------------|--------------------------|-------------|---------------------|------------------------|---------|-----------------|-------------------------------|
182
+ | 11.8.2 | * | [4.3.1+] | 21 | 34 | >=5.4.2 | 14.0 | Active, supports Xcode 15.0.1 |
183
+ | 11.8.1 | * | [4.3.1+] | 21 | 34 | >=5.4.2 | 14.0 | Active, supports Xcode 15.0.1 |
182
184
  | 11.8.0 | * | [4.3.1+] | 21 | 34 | >=5.4.2 | 14.0 | Active, supports Xcode 15.0.1 |
183
185
  | 11.7.1 | * | [4.3.0+] | 21 | 34 | >=5.4.1 | 14.0 | Active, supports Xcode 15.0.1 |
184
186
  | 11.7.0 | * | [4.3.0+] | 21 | 34 | >=5.4.0 | 14.0 | Active, supports Xcode 15.0.1 |
@@ -4,7 +4,7 @@
4
4
  <application>
5
5
  <meta-data
6
6
  android:name="com.plaid.link.react_native"
7
- android:value="11.8.0" />
7
+ android:value="11.8.2" />
8
8
  </application>
9
9
 
10
10
  </manifest>
package/ios/RNLinksdk.m CHANGED
@@ -27,7 +27,7 @@ static NSString* const kRNLinkKitVersionConstant = @"version";
27
27
  RCT_EXPORT_MODULE();
28
28
 
29
29
  + (NSString*)sdkVersion {
30
- return @"11.8.0"; // SDK_VERSION
30
+ return @"11.8.2"; // SDK_VERSION
31
31
  }
32
32
 
33
33
  + (NSString*)objCBridgeVersion {
@@ -90,6 +90,7 @@ RCT_EXPORT_METHOD(create:(NSString*)token :(BOOL)noLoadingState) {
90
90
  strongSelf.exitCallback(@[[NSNull null], exitMetadata]);
91
91
  }
92
92
  strongSelf.exitCallback = nil;
93
+ strongSelf.linkHandler = nil;
93
94
  }
94
95
  };
95
96
 
@@ -99,6 +100,15 @@ RCT_EXPORT_METHOD(create:(NSString*)token :(BOOL)noLoadingState) {
99
100
  NSDictionary *eventDictionary = [RNLinksdk dictionaryFromEvent:event];
100
101
  [strongSelf sendEventWithName:kRNLinkKitOnEventEvent
101
102
  body:eventDictionary];
103
+
104
+ // If this is the HANDOFF event.
105
+ if (event.eventName.value == PLKEventNameValueHandoff) {
106
+ // If we have dismissed Link.
107
+ if (strongSelf.presentingViewController == nil) {
108
+ // Deallocate the handler it's no longer needed.
109
+ strongSelf.linkHandler = nil;
110
+ }
111
+ }
102
112
  }
103
113
  };
104
114
 
@@ -168,7 +178,6 @@ RCT_EXPORT_METHOD(dismiss) {
168
178
  [self.presentingViewController dismissViewControllerAnimated:YES
169
179
  completion:nil];
170
180
  self.presentingViewController = nil;
171
- self.linkHandler = nil;
172
181
  }
173
182
 
174
183
  #pragma mark - Bridging
@@ -461,6 +470,8 @@ RCT_EXPORT_METHOD(dismiss) {
461
470
  return @"VERIFY_PHONE";
462
471
  case PLKEventNameValueConnectNewInstitution:
463
472
  return @"CONNECT_NEW_INSTITUTION";
473
+ case PLKEventNameValueSubmitOTP:
474
+ return @"SUBMIT_OTP";
464
475
  }
465
476
  return @"unknown";
466
477
  }
@@ -501,6 +512,8 @@ RCT_EXPORT_METHOD(dismiss) {
501
512
  return @"institution_not_found";
502
513
  case PLKExitStatusValueRequiresAccountSelection:
503
514
  return @"requires_account_selection";
515
+ case PLKExitStatusValueContinueToThridParty:
516
+ return @"continue_to_third_party";
504
517
  }
505
518
  return @"unknown";
506
519
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-plaid-link-sdk",
3
- "version": "11.8.0",
3
+ "version": "11.8.2",
4
4
  "description": "React Native Plaid Link SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",