Skip to content

Commit

Permalink
Enchancement: Write small notice about skipAndroid
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Jan 22, 2018
1 parent 0a6080a commit 441039f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 441039f

Please sign in to comment.