https://github.com/davinci2015/react-native-ios-status-bar-padding
https://github.com/davinci2015/react-native-ios-status-bar-padding
ios react-native statusbar
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/davinci2015/react-native-ios-status-bar-padding
- Owner: davinci2015
- Created: 2017-02-13T07:26:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-22T09:16:11.000Z (over 8 years ago)
- Last Synced: 2025-04-30T14:27:39.078Z (about 1 year ago)
- Topics: ios, react-native, statusbar
- Language: JavaScript
- Size: 5.86 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-ios-status-bar-padding
Calculate and adjust status bar padding for iOS devices.
Component needs to be placed at top of screen/view.
## Installation
```bash
npm install react-native-ios-status-bar-padding --save
```
## Usage
Require package from your Javascript file as shown below:
```js
import React, { Component } from 'react-native';
import StatusBarPaddingIOS from 'react-native-ios-status-bar-padding';
class ExampleComponent extends Component {
render() {
return()
}
}
export default ExampleComponent;
```
Provide custom styles to bar (applies only in iOS)
```js
```