1.0.4 • Published 3 years ago

react-native-custom-statusbar v1.0.4

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

npm version

react-native-custom-statusbar

A library to help you create StatusBar in react native for iphones(all) and android.

Installing

npm i react-native-custom-statusbar --save

npm add react-native-custom-statusbar

Example

// in App.js or App.tsx

import React from 'react';
import StatusBarCustom from 'react-native-custom-statusbar';

const App: React.FC = () => {
  return (
    <StatusBarCustom backgroundColor="#0e502b" barStyle="light-content">
      { your components }
    </StatusBarCustom>
  );
}

export default App;

Properties

Any StatusBar property and the following:

Exclusive properties for IPhone X + (X, XR, 11, 12)

ProptypeDescriptionAndroidIos
isHelperbooleanEnables the helper for IPhone you ownNone>= Iphone X
colorHelperstringSet color helper default is #FFFFFFNone>= Iphone X

Examples:

isHelper (true) and color '#63b788'

isHelper (false)

Properties StatusBar is working in Ios

ProptypeDescriptionAndroidIos
translucentbooleanenable translucentin android and iosallall
hiddenbooleanhidden StatusBar in android and iosallall

Examples:

translucent (true)

hidden (true)

normal - translucent (false) and hidden (false)

Licence

MIT