Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@freakycoder/react-native-header-view

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@freakycoder/react-native-header-view

Fully customizable Header View for React Native.

Source
npmnpm
Version
0.3.1
Version published
Weekly downloads
97
646.15%
Maintainers
1
Weekly downloads
 
Created
Source
React Native Bottom Bar

Fully customizable Header View for React Native.

npm version npm Platform - Android and iOS License: MIT styled with prettier

React Native Header View React Native Header View

Installation

Add the dependency:

Pure React Native:

npm i @freakycoder/react-native-header-view

Peer Dependencies

IMPORTANT! You need install them.
"react": ">= 16.x",
"react-native": ">= 0.55.x",
"react-native-iphone-x-helper": ">= 1.x.x",
"react-native-dynamic-vector-icons": ">= x.x.x"

Basic Usage

<Header
  headerTitle="Header"
  rightComponentDisable
  leftComponentOnPress={() => {}}
  hitSlops={
    top: 30,
    bottom: 30,
    left: 30,
    right: 30
  }
/>

Advanced Usage

<Header
  headerTitle="Header"
  leftComponent={
    <TouchableOpacity
      onPress={() => {}}>
      <Icon name="ios-arrow-back" type="Ionicons" size={30} color="blue" />
    </TouchableOpacity>
  }
  rightComponent={
    <TouchableOpacity
      onPress={() => {}}>
      <Icon name="github" type="AntDesign" size={30} color="purple" />
    </TouchableOpacity>
  }
/>

Configuration - Props

PropertyTypeDefaultDescription
stylesstylesstylesuse this to change main style of the header
heightnumber50use this to change the header's height
widthnumber100%use this to change the header's width
statusBarHiddenbooleanfalseuse this to let Header Component itself re-arrange depends on the status bar
hitSlopsobjectobject: 30use this to change the header's left and right components' hitSlots
bottomStickbooleanfalsestick the header to bottom side
headerTitlestring""use this to set header's title
backgroundColorcolor#ffffffuse this to change the header's background color
leftComponentcomponentIconset the left component
leftComponentStylestylestyleset the left component's style
leftComponentDisablebooleanfalsedisable the left component
leftComponentOnPressfunctionnullset the left component's onPress function
rightComponentcomponentIconset the right component
rightComponentStylestylestyleset the right component's style
rightComponentDisablebooleanfalsedisable the right component
rightComponentOnPressfunctionnullset the right component's onPress function
centerComponentcomponentIconset the center component
centerComponentStylestylestyleset the center component's style

Change Log

0.2.0 (2019-02-23)

Author

FreakyCoder, kurayogun@gmail.com

License

React Native Header View Library is available under the MIT license. See the LICENSE file for more info.

Keywords

react-native

FAQs

Package last updated on 12 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts