From 14350349cac4ff57e0dba9678553de908aa5eb45 Mon Sep 17 00:00:00 2001 From: gunnigylfa Date: Fri, 8 Sep 2017 14:32:41 +0000 Subject: [PATCH] adding basic api interface for pixelRatio get --- src/pixelRatioRe.re | 1 + src/pixelRatioRe.rei | 1 + src/reactNative.re | 2 ++ 3 files changed, 4 insertions(+) create mode 100644 src/pixelRatioRe.re create mode 100644 src/pixelRatioRe.rei diff --git a/src/pixelRatioRe.re b/src/pixelRatioRe.re new file mode 100644 index 00000000000000..421bf2c15d3a22 --- /dev/null +++ b/src/pixelRatioRe.re @@ -0,0 +1 @@ +external get : unit => int = "get" [@@bs.scope "PixelRatio"] [@@bs.module "react-native"]; diff --git a/src/pixelRatioRe.rei b/src/pixelRatioRe.rei new file mode 100644 index 00000000000000..8a6c6f2fdf4349 --- /dev/null +++ b/src/pixelRatioRe.rei @@ -0,0 +1 @@ +let get: unit => int; diff --git a/src/reactNative.re b/src/reactNative.re index 81bf2c2927b9da..9b5a867d63869f 100644 --- a/src/reactNative.re +++ b/src/reactNative.re @@ -84,6 +84,8 @@ module NativeEventEmitter = NativeEventEmitterRe; module Platform = PlatformRe; +module PixelRatio = PixelRatioRe; + module StyleSheet = StyleSheetRe; module PanResponder = {