Skip to content

Commit

Permalink
PixelRatio.pixel()
Browse files Browse the repository at this point in the history
Summary:
This implements #5073. It adds a static method `PixelRatio.pixel()` which returns the smallest drawable line width, primarily for use in styles.

It also updates the example apps to use the new function.
Closes facebook/react-native#5076

Reviewed By: svcscm

Differential Revision: D2799849

Pulled By: nicklockwood

fb-gh-sync-id: b83a77790601fe882affbf65531114e7c5cf4bdf
  • Loading branch information
corbt authored and facebook-github-bot-5 committed Jan 15, 2016
1 parent 62a3d2c commit fb94be4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions react-packager/src/Resolver/__tests__/Resolver-test.js
Expand Up @@ -10,6 +10,7 @@

jest.dontMock('../')
.dontMock('underscore')
.dontMock('PixelRatio')
.dontMock('../../DependencyResolver/lib/extractRequires')
.dontMock('../../DependencyResolver/lib/replacePatterns');

Expand Down

0 comments on commit fb94be4

Please sign in to comment.