forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding additional bindings for RN PixelRatio
- Loading branch information
1 parent
1435034
commit 0a38b71
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
external get : unit => int = "get" [@@bs.scope "PixelRatio"] [@@bs.module "react-native"]; | ||
external get : unit => float = "get" [@@bs.scope "PixelRatio"] [@@bs.module "react-native"]; | ||
|
||
external getFontScale : unit => float = "getFontScale" [@@bs.scope "PixelRatio"] [@@bs.module "react-native"]; | ||
|
||
external getPixelSizeForLayoutSize : int => int = "getPixelSizeForLayoutSize" [@@bs.scope "PixelRatio"] [@@bs.module "react-native"]; | ||
|
||
external roundToNearestPixel : float => float = "roundToNearestPixel" [@@bs.scope "PixelRatio"] [@@bs.module "react-native"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
let get: unit => int; | ||
let get: unit => float; | ||
|
||
let getFontScale: unit => float; | ||
|
||
let getPixelSizeForLayoutSize: int => int; | ||
|
||
let roundToNearestPixel: float => float; |