@pinwheel/react-native-pinwheel 2.5.3 → 2.5.4
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/CHANGELOG.md +9 -3
- package/RNPinwheelSDK.podspec +1 -1
- package/constants.d.ts +1 -1
- package/constants.js +1 -1
- package/index.js +6 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,23 +4,29 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## 2.5.x Releases
|
|
6
6
|
|
|
7
|
-
[2.5.0](#250) | [2.5.1](#251) | [2.5.2](#252) | [2.5.3](#253)
|
|
7
|
+
[2.5.0](#250) | [2.5.1](#251) | [2.5.2](#252) | [2.5.3](#253) | [2.5.4](#254)
|
|
8
8
|
|
|
9
9
|
---
|
|
10
|
+
|
|
11
|
+
### 2.5.4
|
|
12
|
+
|
|
13
|
+
#### Notes
|
|
14
|
+
|
|
15
|
+
- Bugfix: Normalize event names to lower case. Event names began firing as uppercase in versions 3.0.0 and 2.5.0.
|
|
16
|
+
|
|
10
17
|
### 2.5.3
|
|
11
18
|
|
|
12
19
|
#### Notes
|
|
13
20
|
|
|
14
21
|
- Changed Minimum Android SDK requirements to 22
|
|
15
22
|
|
|
16
|
-
|
|
23
|
+
|
|
17
24
|
### 2.5.2
|
|
18
25
|
|
|
19
26
|
#### Notes
|
|
20
27
|
|
|
21
28
|
- Expand internal functionality to support a broader range of platforms and increase conversion rate.
|
|
22
29
|
|
|
23
|
-
---
|
|
24
30
|
### 2.5.1
|
|
25
31
|
|
|
26
32
|
#### Notes
|
package/RNPinwheelSDK.podspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Pod::Spec.new do |s|
|
|
2
2
|
s.name = "RNPinwheelSDK"
|
|
3
|
-
s.version = "2.5.
|
|
3
|
+
s.version = "2.5.4"
|
|
4
4
|
s.summary = "React Native plugin for Pinwheel's SDK"
|
|
5
5
|
s.description = <<-DESC
|
|
6
6
|
An open source React Native plugin for calling Pinwheel's native SDKs to manage payroll data.
|
package/constants.d.ts
CHANGED
package/constants.js
CHANGED
package/index.js
CHANGED
|
@@ -21,8 +21,12 @@ export default ({ linkToken, onLogin, onLoginAttempt, onSuccess, onError, onExit
|
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
const { name, payload } = event;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
// Our Android SDK, since the beginning, has been firing events with upper case.
|
|
25
|
+
// Since we are now wrapping the Android SDK to create the RN SDK, we need to reconcile
|
|
26
|
+
// the event names here.
|
|
27
|
+
const normalizedName = name.toLowerCase();
|
|
28
|
+
onEvent && onEvent(normalizedName, payload);
|
|
29
|
+
switch (normalizedName) {
|
|
26
30
|
case 'exit':
|
|
27
31
|
// console.log(`case: exit, onExit: ${onExit}`);
|
|
28
32
|
onExit && onExit(payload);
|