• Stars
    star
    548
  • Rank 81,119 (Top 2 %)
  • Language
    Java
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Fully customizable Header View with multiple design options for React Native.

React Native Bottom Bar

Battle Tested βœ…

Collection of Header Views for React Native

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

Apple Header Gorgeous Header
React Native Apple Header View React Native Gorgeous Header View
Elegant Header Modern Header
React Native Elegant Header View React Native Modern Header View
Profile Header Classic Header
React Native Profile Header View React Native Classic Header View

Finally Version 1.0.0 πŸ₯³

Finally, this library got the version 1.0.0. More than 5k downloads and it is separated by each header view. This library contains the collection of each header view. If you do not need to use them all, you can reach and install header views on its own repository.

Options

Installation

You can use each Header View separately if you do not want to use the collection.

Add the dependency:

Pure React Native

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

Peer Dependencies

IMPORTANT! You need install them.
"react-native-gorgeous-header": ">= 0.1.0",
"react-native-classic-header": ">= 0.1.0",
"react-native-modern-header": ">= 0.1.0",
"react-native-apple-header": ">= 0.1.0",
"react-native-profile-header": ">= 0.1.0",

Usage

Gorgeous Header Usage

import { GorgeousHeader } from "@freakycoder/react-native-header-view";

<GorgeousHeader onChangeText={(text) => console.log(text)} />;

Apple Header Usage

import { AppleHeader } from "@freakycoder/react-native-header-view";

<AppleHeader />;

Modern Header Usage

import { ModernHeader } from "@freakycoder/react-native-header-view";

<ModernHeader />;

Advanced Usage

import { ModernHeader } from "@freakycoder/react-native-header-view";

<ModernHeader
  text="Profile"
  rightIconType="Ionicons"
  backgroundColor="#fdfdfd"
  rightIconName="ios-settings"
  rightIconColor={colors.light.primary}
  leftIconComponent={your - icon - component}
  rightIconComponent={your - icon - component}
  leftIconOnPress={() => NavigationService.back()}
/>;

Classic Header Usage

Basic Usage

import { ClassicHeader } from "@freakycoder/react-native-header-view";

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

Advanced Custom Usage

import { ClassicHeader } from "@freakycoder/react-native-header-view";

<ClassicHeader
  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>
  }
/>;

Profile Header Usage

import { ProfileHeader } from "@freakycoder/react-native-header-view";

<ProfileHeader />;

Configuration - Props

Gorgeous Header Props

Property Type Default Description
title string Order change the title
subtitle string Healthy food can keep you fit. change the subtitle
searchIcon asset default set your own icon for the search one
titleTextStyle style default set your own style for title text
subtitleTextStyle style default set your own style for subtitle text
searchBarStyle style default set your own style for search text input container
searchInputStyle style default set your own style for search text input
menuImageStyle style default set your own style for hamburger menu image
menuImageSource asset default set your own image instead of default hamburger menu image
menuImageOnPress function undefined use this to set your own function for pressing the hamburger menu image
profileImageStyle style default set your own style for profile image
profileImageSource asset undefined use this to set your own image for profile image
profileImageOnPress function undefined use this to set your own function for pressing the profile image

Apple Header Props

Property Type Default Description
dateTitle string MONDAY, 27 NOVEMBER set your own string instead of date title
largeTitle string For You set your own large title
imageSource image image set your own image
onPress function null use this to set onPress functionality
backgroundColor color transparent use this to change the main container's background color
borderColor color #EFEFF4 use this to change the bottom border color
dateTitleFontColor color #8E8E93 use this to change the date title's font color
dateTitleFontSize number 13 use this to set the date title's font size
dateTitleFontWeight string "600" use this to set the date title's font weight
largeTitleFontColor color default color use this to change the large title's font color
largeTitleFontSize number 34 use this to set the large title's font size
largeTitleFontWeight string "bold" use this to set the large title's font weight
dateTitleStyle style default style use this to set your own style for date title (DO NOT RECOMMENDED!)
largeTitleStyle style default style use this to set your own style for large title (DO NOT RECOMMENDED!)
containerStyle style default style use this to set your own style for whole container (DO NOT RECOMMENDED!)
avatarStyle style default style use this to set your own style for avatar style (DO NOT FORGET TO ADD BORDER-RADIUS!)

Modern Header Props

Property Type Default Description
height string OR number 70 change the height of the header
width string OR number "100%" change the width of the header
backgroundColor string #fff change the background color of the header
styles styles styles use this to change main style of the header
text string Header Title set the header's title
textStyle style style set your own style for the header's text
left number 16 use this to set left icon's align
right number 16 use this to set right icon's align
leftIconName string ios-arrow-back change the left icon depends on the React Native Vector Icons
leftIconType string Ionicons change the left icon's type
leftIconSize number 25 change the left icon's size
leftIconColor color #bbbabe change the left icon's color
rightIconName string heart change the right icon depends on the React Native Vector Icons
rightIconType string Entypo change the right icon's type
rightIconSize number 25 change the right icon's size
rightIconColor color #23c4c1 change the right icon's color
leftIconComponent component Icon use your own component instead of the integrated Icon component
rightIconComponent component Icon use your own component instead of the integrated Icon component
leftIconOnPress function function set the function for left icon's onPress
rightIconOnPress function function set the function for right icon's onPress
leftDisable boolean false disable the left icon component
rightDisable boolean false disable the right icon component

Classic Header Props

Property Type Default Description
styles styles styles use this to change main style of the header
height number 50 use this to change the header's height
width number 100% use this to change the header's width
statusBarHidden boolean false use this to let Header Component itself re-arrange depends on the status bar
hitSlops object object: 30 use this to change the header's left and right components' hitSlots
bottomStick boolean false stick the header to bottom side
headerTitle string "" use this to set header's title
backgroundColor color #ffffff use this to change the header's background color
leftComponent component Icon set the left component
leftComponentStyle style style set the left component's style
leftComponentDisable boolean false disable the left component
leftComponentOnPress function null set the left component's onPress function
rightComponent component Icon set the right component
rightComponentStyle style style set the right component's style
rightComponentDisable boolean false disable the right component
rightComponentOnPress function null set the right component's onPress function
centerComponent component Icon set the center component
centerComponentStyle style style set the center component's style

ProfileHeader Props

Property Type Default Description
onLeftButtonPress function undefined set the logic for left aligned button
onProfilePicPress function undefined set the logic for profile picture
onFirstIconPress function undefined set the logic for first icon button
onSecondIconPress function undefined set the logic for second icon button
onThirdIconPress function undefined set the logic for third icon button
profileImageSource image default change the profile image source
leftAlignedButtonImageSource image default change the left aligned button image source
firstIconImageSource image default change the first icon image source
secondIconImageSource image default change the second icon image source
thirdIconImageSource image default change the third icon image source
titleText string undefined change the title text
height number 50 change the profile header's height
backgroundColor color #fff change the profile header's background color
leftButtonComponent component Image set your own component instead of default left aligned Button Image
disableFirstIcon boolean false disable the first icon
disableSecondIcon boolean false disable the second icon
disableThirdIcon boolean false disable the third icon
disableLeftAlignedButton boolean false disable the left aligned icon
ImageComponent component Image set your own Image component instead of default react native Image such as; FastImage

Change Log

0.4.13 (2019-11-22)

Full Changelog

0.4.11 (2019-11-13)

Full Changelog

0.4.10 (2019-11-13)

Full Changelog

Implemented enhancements:

  • Apple header Bg colour options #6

0.4.7 (2019-10-04)

Full Changelog

0.4.6 (2019-10-04)

Full Changelog

Closed issues:

  • Request to Add product in Start React #5

Merged pull requests:

0.4.5 (2019-08-17)

Full Changelog

0.3.0 (2019-08-12)

Full Changelog

Merged pull requests:

0.2.61 (2019-03-19)

Full Changelog

0.2.6 (2019-03-05)

Full Changelog

0.2.5 (2019-03-05)

Full Changelog

0.2.4 (2019-03-05)

Full Changelog

0.2.3 (2019-03-05)

Full Changelog

0.2.2 (2019-03-05)

Full Changelog

0.2.0 (2019-02-23)

* This Change Log was automatically generated by github_changelog_generator

Credits

Photo by Joanna Nix on Unsplash

Author

FreakyCoder, [email protected]

License

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

More Repositories

1

react-native-dynamic-search-bar

Medium Article: https://freakycoder.com/react-native-library-dynamic-search-bar-c03fea9fae36
Java
481
star
2

react-native-bouncy-checkbox

Fully customizable animated bouncy checkbox for React Native
Java
462
star
3

react-native-apple-card-views

Customizable and perfect clone of Apple, App Store Card Views for React Native.
Java
336
star
4

react-native-typescript-boilerplate

πŸš€ Awesome fundamental features with Typescript support React Native Boilerplate
TypeScript
210
star
5

react-native-beautiful-timeline

Fully customizable, beautifully designed Timeline for React Native.
Java
175
star
6

react-native-login-screen

πŸš€ Fully Customizable Beautiful React Native Login Screen
TypeScript
155
star
7

StompClientLib

Simple STOMP Client library, Swift 3 and 4, 4.2, 5 compatible
Swift
142
star
8

react-native-gradient-header

Fully customizable and unique shape Gradient Header for React Native
JavaScript
138
star
9

react-native-header-search-bar

Fully customizable header search bar for React Native
JavaScript
111
star
10

react-native-imaged-carousel-card

Fully customizable & Lovely Imaged Carousel Card for React Native
JavaScript
99
star
11

react-native-dynamic-vector-icons

Wrapper of react-native-vector-icons to use dynamic types
TypeScript
86
star
12

react-native-single-select

Customizable & Easy to Use Single Select Library for React Native
TypeScript
85
star
13

react-native-progressive-fast-image

Customizable progressive image for React Native with FastImage
TypeScript
82
star
14

react-native-internet-connection-alert

Fully customizable internet connection listener with the built-in alert for React Native
Java
74
star
15

react-native-bottom-bar

Fully customizable BottomBar with unique design shape for React Native.
JavaScript
73
star
16

react-native-helpers

All helpers in one; iPhone series support, dimensions helper, hasNotch helper, normalize text helper and text helpers for React Native with very easy useEasy to use & awesome helpers for React Native.
TypeScript
71
star
17

react-native-gradient-card-view

Fully customizable Gradient Card View for React Native.
TypeScript
67
star
18

react-native-bounceable

πŸš€ Animate and bounce any component with RNBounceable for React Native
Java
56
star
19

react-native-typescript-library-starter

Ready to Rock πŸ”₯
JavaScript
53
star
20

react-navigation-helpers

Helpers for React Navigation
Java
49
star
21

MediaPickerLib

Kotlin based media picker library, to pick multiple images and/or vidoes from built-in gallery. Easy to implement and use :)
Kotlin
48
star
22

react-native-floating-action-button

Fully customizable Floating Action Button for React Native
JavaScript
47
star
23

react-native-redux-boilerplate

React Native Redux Boiler Plate
JavaScript
38
star
24

react-native-poll

Voting and poll library for React Native with fully customizable options
TypeScript
38
star
25

react-native-multiple-select

Customizable & Animated, Easy to Use Multiple Select Library for React Native
TypeScript
36
star
26

react-native-button

Fully customizable, Gradient, Outline and Solid Button for React Native.
TypeScript
34
star
27

MJPEGStreamLib

Simple and easy to use MJPEG Stream Library. It contains authentication if your stream url needs a username/password. It is based on UIImageView so it is all up to your custom design.
Swift
32
star
28

react-native-text-input-interactive

Fully customizable, animated text input for React Native with beautiful and elegant design
Java
32
star
29

react-native-duo-toggle-switch

Fully customizable animated duo toggle switch for React Native
Java
31
star
30

react-native-permissions-modal

Awesome & Fully Customizable Permissions Modal for React Native
JavaScript
31
star
31

react-native-time-date-picker

πŸš€ Easy to use time and date picker with lots of options for React Native πŸ₯³
TypeScript
28
star
32

react-native-dynamic-text-loading

Dynamically changes the text while loading screen for React Native. This is the loading like Heartstone and Discord's dynamically changes loading texts :)
JavaScript
27
star
33

react-native-picker-modal

Easy and fully customizable picker modal for React Native
TypeScript
26
star
34

react-native-animation-layout

Custom & Ready to GO partially customizable Animation Layouts for React Native.
JavaScript
25
star
35

react-native-animated-radio-button

Fully customizable animated radio button for React Native
Java
25
star
36

react-native-monthly

Animated and customizable monthly calendar for React Native
TypeScript
24
star
37

react-native-segmented-control-2

πŸš€ React Native Segmented Control, Pure Javascript for iOS and Android
Java
21
star
38

react-native-imaged-card-view

Rising Imaged Card View with Awesome Shadows and Fully Customizable Library for React Native
JavaScript
21
star
39

react-native-animated-component

Animate any component with React Native Animated Component
Java
20
star
40

react-native-easy-state-view

Fully customizable State View for React Native.
Java
20
star
41

react-native-circular-card-view

Fully customizable Circular Card View for React Native
JavaScript
20
star
42

react-native-rounded-checkbox

Rounded Checkbox with animated and fully customizable options library for React Native
TypeScript
20
star
43

react-native-text-area

Simple and easy to use TextArea for React Native.
Java
20
star
44

react-native-bottom-search-bar

Elegant & Cool also fully customizable bottom search bar for React Native.
Java
20
star
45

react-native-permission-service

Easy to use permission service which is all handled by itself for both iOS and Android on React Native
TypeScript
19
star
46

react-native-typescript-zustand-boilerplate

πŸš€ Ready to start Zustand Typescript React Native Boilerplate 🌟
TypeScript
19
star
47

react-native-checkbox-card

Checkbox Card is customizable and animated built-in check state integration for React Native
TypeScript
18
star
48

react-native-counter-input

Counter Input with fully customizable options for React Native
TypeScript
18
star
49

react-native-switch-button

Animated switch button with fully customizable React Native Component
TypeScript
18
star
50

iOS-StatusBar-Example

Medium Article: https://freakycoder.com/ios-notes-13-how-to-change-status-bar-color-1431c185e845
Swift
17
star
51

react-native-bouncy-checkbox-group

Fully customizable bouncy checkbox group for React Native
TypeScript
16
star
52

react-native-social-login-screen

Easy Login Screen with beautiful design and fully customizable options for React Native
TypeScript
16
star
53

react-native-colorful-card

Fully customizable colorful card component for React Native
TypeScript
16
star
54

react-native-animated-radio-button-group

Fully customizable, animated & easy to use radio button group
Java
16
star
55

react-native-subscribe-card

Beautifully designed & fully customizable subscribe card for React Native
TypeScript
15
star
56

react-native-instagram-story-circle

Fully customizable Instagram Story Circle with Bounceable Animated Library for React Native
TypeScript
15
star
57

react-native-alert-modalize

Awesome styled, fully customizable alert modalize for React Native.
JavaScript
14
star
58

react-native-bottom-menu

Fully customizable Bottom Menu for React Native.
JavaScript
14
star
59

react-native-image-swiper

Fully customizable & extremely easy to use Image Swiper for React Native
Java
14
star
60

Instagram-Style-Gradient-Background-Transition

Instagram Style Animated Gradient Background Login Screen
Java
14
star
61

react-native-typescript-redux-boilerplate

Awesome fundamental features with Typescript support and ready to use Redux implementation React Native Boilerplate
TypeScript
13
star
62

react-native-whatsnew-kit

Plug & Play, beautiful WhatsNewKit for React Native
JavaScript
13
star
63

react-native-review-modal

Review Modal with dynamic rate system and comment feature for React Native
JavaScript
12
star
64

react-native-gorgeous-header

Fully customizable & easy to use gorgeous header view for React Native
Java
12
star
65

react-native-flex-divider

Fully customizable flex divider with a easy use for React Native
Java
12
star
66

react-native-star-review

Fully customizable Star Review for React Native.
JavaScript
12
star
67

react-native-shake-text

TypeScript
11
star
68

react-native-custom-text

TypeScript
11
star
69

react-native-ticket-modal

Ready to GO Ticket Modal for React Native.
JavaScript
11
star
70

react-native-checkbox-flex

Fully customizable, easy to use checkbox with flexible component by React Native on Android and iOS
TypeScript
11
star
71

react-native-apple-header

React Native Apple Header
TypeScript
10
star
72

react-native-empty-state

Empty State library which is fully customizable and simple for any state view use-cases
Java
10
star
73

React-Native-Media-Controls

A sweet UI component to manipulate your media
JavaScript
10
star
74

react-native-beautiful-horizontal-list

JavaScript
10
star
75

react-native-premium-table

Fully customizable, easy to use premium table for React Native
Java
9
star
76

react-native-modern-header

React Native Modern Header
Java
9
star
77

react-native-image-picker-modal

Easy to use image picker modal with awesome iOS Picker design for React Native
Java
9
star
78

react-native-global-modal-2

🌍 Global modal and callable from anywhere on the app for React Native
TypeScript
9
star
79

react-native-ios-like-navigation-transition

Java
9
star
80

react-native-basic-modal

Basic & Elegant Modal for React Native
Java
9
star
81

react-native-profile-header

Customizable Profile Header with cool icons for React Native
TypeScript
8
star
82

react-native-social-auth-helper

React Native Social Auth Helper
Java
8
star
83

react-native-text-input

React Native Text Input
Java
8
star
84

react-native-imaged-card

Beautiful and Fully Customizable Imaged Card for React Native
JavaScript
8
star
85

react-native-easy-cached-image

Easy Peasy Cached Image for React Native.
JavaScript
8
star
86

react-native-improved-text-input

Improved Text Input with placeholder style option for React Native
Objective-C
6
star
87

react-native-custom-icon

Medium Article: https://freakycoder.com/react-native-library-react-native-custom-icon-1ec0b734d691
JavaScript
6
star
88

react-native-pure-boilerplate

React Native Pure BoilerPlate
JavaScript
6
star
89

react-native-countdown

Moment based extremely easy to use Countdown for React Native
Java
6
star
90

react-native-multi-grid-selection

Fully customizable Multi Grid Card Selection component for React Native on both iOS and Android
TypeScript
5
star
91

react-native-beautiful-state-view

Fully customizable & Beautiful State View for React Native
Java
5
star
92

React-Native-Translucent-StatusBar-Example

Medium Article:
Objective-C
5
star
93

react-native-rounded-checkbox-group

Fully customizable react native checkbox group for React Native
Java
5
star
94

react-use-state-with-callback

Make the useState hook with a callback for React and React Native
Java
5
star
95

react-native-permission-item

Customizable, easy to use permission item component for React Native
TypeScript
4
star
96

react-native-get-premium-screen

Easy to use and fully customizable get premium screen for React Native
TypeScript
4
star
97

react-native-dash-2

Java
4
star
98

react-native-social-button

Easy & Elegant Social Button for React Native
JavaScript
3
star
99

react-native-splash-screen-example

React Native Notes 25: How to build a native Splash Screen on React Native App?
TypeScript
3
star
100

react-native-card-collection

Easy to use & Ready to Go Fully Customizable Awesome Card Collection for React Native.
JavaScript
3
star