0.1.1 • Published 5 years ago

react-native-profile-header v0.1.1

Weekly downloads
17
License
MIT
Repository
github
Last release
5 years ago

Customizable Profile Header wih cool icons for React Native

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

Installation

Add the dependency:

npm i react-native-profile-header

Peer Dependencies

"@freakycoder/react-native-bounceable": "^0.1.1",

Usage

Import

import ProfileHeader from "react-native-profile-header";

Fundamental Usage

<ProfileHeader />

Configuration - Props

PropertyTypeDefaultDescription
onLeftButtonPressfunctionundefinedset the logic for left aligned button
onProfilePicPressfunctionundefinedset the logic for profile picture
onFirstIconPressfunctionundefinedset the logic for first icon button
onSecondIconPressfunctionundefinedset the logic for second icon button
onThirdIconPressfunctionundefinedset the logic for third icon button
profileImageSourceimagedefaultchange the profile image source
leftAlignedButtonImageSourceimagedefaultchange the left aligned button image source
firstIconImageSourceimagedefaultchange the first icon image source
secondIconImageSourceimagedefaultchange the second icon image source
thirdIconImageSourceimagedefaultchange the third icon image source
titleTextstringundefinedchange the title text
heightnumber50change the profile header's height
backgroundColorcolor#fffchange the profile header's background color
leftButtonComponentcomponentImageset your own component instead of default left aligned Button Image
disableFirstIconbooleanfalsedisable the first icon
disableSecondIconbooleanfalsedisable the second icon
disableThirdIconbooleanfalsedisable the third icon
disableLeftAlignedButtonbooleanfalsedisable the left aligned icon
ImageComponentcomponentImageset your own Image component instead of default react native Image such as; FastImage
stylestyledefaultset or override your own style instead of default one

Future Plans

  • LICENSE
  • Write an article about the lib on Medium

Credits

Heavily Inspired by Enes Kargıcı, thank you so much!

Author

FreakyCoder, kurayogun@gmail.com

License

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