iPhone utilities for React Native apps
yarn add react-native-iphone-util
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
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT