stripe-terminal-react-native
stripe-terminal-react-native copied to clipboard
The value of label field in given Reader.Type object is always null
Describe the bug
Currently, I'm using stripe-terminal-react-native in the app, and I want to display the label of Readers (both discoveredReaders and connectedReader). But I found that the label field in returned Reader.Type objects are always null.
To Reproduce
- Create a reader with a label or Update the label of the existing reader
- Discover and connect the reader with the app (get discoveredReaders and connectedReader by using useStripeTerminal)
Expected behavior
The returned Reader.Type objects include label fields with the right values
Stripe Terminal React Native SDK version
0.0.1-beta.15
Smartphone (please complete the following information):
- Device: iPhone 12 Pro Max
- OS: iOS 17.2
Additional context
Discord Dev Help: https://discord.com/channels/841573134531821608/841573134531821616/1222214362627051570
hey @khoahtran-kms do you experience this when using our example or dev-app as well? I'm able to access reader labels on both https://github.com/stripe/stripe-terminal-react-native/blob/20b41d6c/dev-app/src/screens/DiscoverReadersScreen.tsx#L103-L110
Hi @nazli-stripe,
Yes, we get the same when using the example app with Stripe Terminal React Native SDK version 0.0.1-beta.17. We're using a Stripe Reader M2 for testing.