Skip to content

Commit 6e73727

Browse files
committed
bs-react-native-next: add PixelRatio.
1 parent 61161e3 commit 6e73727

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎bs-react-native-next/src/apis/PixelRatio.bs.js‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[@bs.scope "PixelRatio"] [@bs.module "react-native"]
2+
external get: unit => float = "get";
3+
4+
[@bs.scope "PixelRatio"] [@bs.module "react-native"]
5+
external getFontScale: unit => float = "getFontScale";
6+
7+
[@bs.scope "PixelRatio"] [@bs.module "react-native"]
8+
external getPixelSizeForLayoutSize: float => int = "getPixelSizeForLayoutSize";
9+
10+
[@bs.scope "PixelRatio"] [@bs.module "react-native"]
11+
external roundToNearestPixel: float => float = "roundToNearestPixel";

0 commit comments

Comments
 (0)