1.0.1 • Published 1 year ago

react-native-apple-header v1.0.1

Weekly downloads
23
License
MIT
Repository
github
Last release
1 year ago

Battle Tested ✅

React Native Apple Header

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

Installation

Add the dependency:

npm i react-native-apple-header

Peer Dependencies

"react": ">= 16.x.x",
"react-native": ">= 0.55.x",

Usage

Import

import AppleHeader from "react-native-apple-header";

Fundamental Usage

<AppleHeader
  imageSource={{
    uri: profileImageSource,
  }}
/>

Configuration - Props

AppleHeader Props

PropertyTypeDefaultDescription
dateTitlestringMONDAY, 27 NOVEMBERset your own string instead of date title
largeTitlestringFor Youset your own large title
imageSourceimageimageset your own image
onPressfunctionnulluse this to set onPress functionality
backgroundColorcolortransparentuse this to change the main container's background color
borderColorcolor#EFEFF4use this to change the bottom border color
dateTitleFontColorcolor#8E8E93use this to change the date title's font color
dateTitleFontSizenumber13use this to set the date title's font size
dateTitleFontWeightstring"600"use this to set the date title's font weight
largeTitleFontColorcolordefault coloruse this to change the large title's font color
largeTitleFontSizenumber34use this to set the large title's font size
largeTitleFontWeightstring"bold"use this to set the large title's font weight
dateTitleStylestyledefault styleuse this to set your own style for date title (DO NOT RECOMMENDED!)
largeTitleStylestyledefault styleuse this to set your own style for large title (DO NOT RECOMMENDED!)
containerStylestyledefault styleuse this to set your own style for whole container (DO NOT RECOMMENDED!)
avatarStylestyledefault styleuse this to set your own style for avatar style (DO NOT FORGET TO ADD BORDER-RADIUS!)

Future Plans

  • LICENSE
  • Write an article about the lib on Medium

Credits

Thank you so much for the image Unsplash

Author

FreakyCoder, kurayogun@gmail.com

License

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