react-native-plaid-link-sdk
react-native-plaid-link-sdk copied to clipboard
LinkEventMetadata attribute casing not consistent between iOS and Android
The problem
In trying to handle item-no-error, we found that Android would never receive an errorCode from the a link event. Root cause seems to be that LinkEventMetadata attribute names are snake case for android.
Environment
| Plaid Link React Native | 7.0.5 |
| ReactNative Version | 0.64.2 |
| Occurs on Android | yes |
| Android OS Version | 11 |
| Android Devices/Emulators | Pixel 4 |
| Occurs on iOS | no |
| iOS Version | n/a |
| iOS Devices/Emulators | n/a |
Steps to Reproduce
Observe events from usePlaidEmitter;
View attribute names LinkEventMetadata in Android and compare to iOS.
Expected Result
Expect meta data to match LinkEventMetadata interface
Screenshots
Top two lines are Android, bottom two lines are iOS.

Hi Jennifer, thank you for flagging this. We have had other reports also asking about this SDK's inconsistency with react-plaid-link's types (which are snake_cased), and the teams are looking to unify across multiple axes. Apologies in the meantime.
Update on this - it is still an issue. We are seeing only camelCase event properties on one platform and only snake_case on the other. This is hard to manage in Amplitude and messes with our funnel tracking.
We are now on Plaid SDK 7.1.0 and pod 2.2.1. Still on React Native 0.64.2.
The type definition of LinkEventMetadata in your SDK does not match the reality of the snake_case fields being returned! We can write our own transform code but we're still holding out for a fix.
- Any update on when this will be fixed?
- Which format will eventually be the standard - camelCase, snake_case, or something else?
We noticed this too.
I'd love to know when this might be fixed!
Resolved in #532