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

Device util update #1342

Merged
merged 3 commits into from
Feb 18, 2020
Merged

Device util update #1342

merged 3 commits into from
Feb 18, 2020

Conversation

rickycodes
Copy link
Member

@rickycodes rickycodes commented Feb 13, 2020

Description

While this PR looks massive it actually only does a few things:

  • Moves all platform checks eg: Platform.OS === 'android' into a single Device utility with methods isAndroid() and isIos()
  • DeviceSize.js utility is deleted and moved to Device.js
  • Finally, it adds Device.test.js for the device methods we're using (previously untested).

Checklist

  • Tests are included if applicable

@rickycodes rickycodes force-pushed the device-util-update branch 2 times, most recently from 2f8044d to d25d997 Compare February 14, 2020 00:52
package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@estebanmino estebanmino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👌

@rickycodes rickycodes merged commit 14e3fe0 into develop Feb 18, 2020
@whymarrh whymarrh deleted the device-util-update branch March 19, 2020 03:07
rickycodes added a commit that referenced this pull request Jan 31, 2022
* DeviceSize -> Device

* Add isAndroid() and isIos() methods in Device and use throughout

* Add Device.test
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.

2 participants