From 441039f5fcd8c223f0087e4d04780a424f3ca274 Mon Sep 17 00:00:00 2001 From: Dmitry Patsura Date: Mon, 22 Jan 2018 13:35:18 +0900 Subject: [PATCH] Enchancement: Write small notice about skipAndroid --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1df236b..7a5d374 100644 --- a/README.md +++ b/README.md @@ -12,15 +12,18 @@ $ npm install --save react-native-status-bar-height $ yarn add react-native-status-bar-height ``` -## Usage +## Usage getStatusBarHeight(skipAndroid: boolean = false) ```js import { getStatusBarHeight } from 'react-native-status-bar-height'; -console.log(getStatusBarHeight()); // 44 - on iPhoneX // 20 - on iOS device -// 0 - on Android +// X - on Android platfrom (runtime value) +console.log(getStatusBarHeight()); + +// will be 0 on Android, because You pass true to skipAndroid +console.log(getStatusBarHeight(true)); ``` ## License