react-native-fabric-digits
react-native-fabric-digits copied to clipboard
Getting userID/userId
Hi, there's one thing with getting user's id:
- Android, I can access it's value from getSessionDetails function by typing
sessionDetails.userId
- iOS, it requires slightly different name:
sessionDetails.userID
(both capitals ID)
Just in case anyone faces some json string errors on login action, should pay attention on this. It can easily be changed in /ios/RCTDigitsManager.m, line 127, to be like for Android, or vice versa :)