0.1.3 • Published 2 years ago
react-native-iphone-util v0.1.3
react-native-iphone-util
iPhone utilities for React Native apps
Installation
yarn add react-native-iphone-util
Usage
Method | Parameter | Return |
---|---|---|
getStatusBarHeight | safe (whether you want for get safe area height or not) | The height of the status bar: 44 for safe iPhone¹, 30 for unsafe iPhone¹, 20 for other iOS devices and StatusBar.currentHeight for Android. |
getBottomSpace | The height of the bottom to fit the safe area: 34 for iPhone¹ and 0 for other devices. |
NOTE
- ¹ For iPhone with version higher than iPhone X
Acknowledgements
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT