Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug where getModel return undefined because deviceId is undefined #769

Conversation

rnnyrk
Copy link

@rnnyrk rnnyrk commented Sep 9, 2019

Description

Can't find a related issue, but when testing the RC I found that deviceId in getModel would be undefined because of a inconsistency of the deviceId const in getModel.

Compatibility

OS Implemented
iOS
Android
Windows

Checklist

All others seem unrelated ;)

  • I have tested this on a device/simulator for each compatible OS
  • I added the documentation in README.md
  • I mentioned this change in CHANGELOG.md
  • I updated the typings files (deviceinfo.d.ts, deviceinfo.js.flow)
  • I updated the dummy web/test polyfill (default/index.js)
  • I added a sample use of the API (example/App.js)

mikehardy added a commit to mikehardy/react-native-device-info that referenced this pull request Sep 9, 2019
@mikehardy
Copy link
Collaborator

Obsoleted by mikehardy@a7129c1 (I wanted to keep the different variable name, but obviously I needed to use it) - will be released as rc.5 shortly - thanks for reporting this @rnnyrk !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants