0.1.6 • Published 2 years ago

rn-status-bar v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Change iOS Status Bar Background color natively. Package support Android & iOS.

Installation

npm install rn-status-bar
yarn add rn-status-bar

Ios Setup

cd ios && pod install

inside info.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <!-- add this -->
	<key>UIViewControllerBasedStatusBarAppearance</key>  
	<true/>  
  <!-- add this -->
	
</dict>
</plist>

Android Setup

No additional setup need

Usage

import * as React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import { StatusBar } from 'rn-status-bar';

export default function App() {
  return (
    <View style={styles.container}>
      <StatusBar barStyle="light-content" backgroundColor="#557B83" />
      <Text>IOS Status Bar Background Color</Text>
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
});

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago