File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change
1
+ external get : unit => float = "get" [@@ bs . scope "PixelRatio" ] [@@ bs . module "react-native" ];
2
+
3
+ external getFontScale : unit => float = "getFontScale" [@@ bs . scope "PixelRatio" ] [@@ bs . module "react-native" ];
4
+
5
+ external getPixelSizeForLayoutSize : int => int = "getPixelSizeForLayoutSize" [@@ bs . scope "PixelRatio" ] [@@ bs . module "react-native" ];
6
+
7
+ external roundToNearestPixel : float => float = "roundToNearestPixel" [@@ bs . scope "PixelRatio" ] [@@ bs . module "react-native" ];
Original file line number Diff line number Diff line change
1
+ let get : unit => float ;
2
+
3
+ let getFontScale : unit => float ;
4
+
5
+ let getPixelSizeForLayoutSize : int => int ;
6
+
7
+ let roundToNearestPixel : float => float ;
Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ module NativeEventEmitter = NativeEventEmitterRe;
84
84
85
85
module Platform = PlatformRe ;
86
86
87
+ module PixelRatio = PixelRatioRe ;
88
+
87
89
module StyleSheet = StyleSheetRe ;
88
90
89
91
module PanResponder = {
You can’t perform that action at this time.
0 commit comments