0.0.11 • Published 5 years ago

react-native-imaged-card-view v0.0.11

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

Battle Tested ✅

Rising Imaged Card View with Awesome Shadows and Fully Customizable Library for React Native

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

Installation

Add the dependency:


React Native:

npm i react-native-imaged-card-view

Peer Dependencies

IMPORTANT! You need install them.
"react": ">= 16.8.6",
"react-native": ">= 0.60.5",
"react-native-androw": ">= 0.0.33",
"react-number-format": ">= 4.2.0",
"react-native-star-review": ">= 0.0.23",
"react-native-vector-icons": ">= 6.6.0",
"react-native-dynamic-vector-icons": ">= 0.2.1"

Usage

Import

import ImagedCardView from "react-native-imaged-card-view";

Basic Usage

<ImagedCardView />

Fully Customizable Usage

<ImagedCardView
  stars={5}
  reviews={456}
  ratings={4.5}
  title="Yosemite"
  rightSideValue="$990"
  subtitle="California"
  leftSideValue="3 Days"
  backgroundColor="#ff6460"
  source={{
    uri: yosemite
  }}
/>

Configuration - Props

PropertyTypeDefaultDescription
widthnumberScreenWidth * 0.75change the width of the card
heightnumber170change the height of the card
titlestringIsland Baliset your own title
subtitlestringIndonesiaset your own subtitle
borderRadiusnumber24change the border radius of the card
titleColorcolorwhitechange the title text's color
subtitleColorcolor"#dbdbdb"change the subtitle text's color
backgroundColorcolor"#0a96ea"change the card's background color
leftSideTitlestringDaysset your own title for left sided one
leftSideValuestring4 daysset your own title's value for left sided one
leftSideColorcolorwhiteset your color for left sided title
leftSideValueColorcolorwhiteset your color for left sided value
rightSideTitlestringPriceset your own title for right sided one
rightSideValuestring$1500set your own title's value for right sided one
rightSideColorcolorwhiteset your color for right sided title
rightSideValueColorcolorwhiteset your color for right sided value
dividerColorcolor"#c4c4c4"set your color for divider
onPressfunctionundefinedset your own function for onPress

React Native Star Review Props

Please check out React Native Star Review for StarReview Props It is also fully customizable

Future Plans

  • LICENSE
  • Write an article about the lib on Medium

Change Log

Change log will be here !

Credits

I inspired the design by Olivia Graphics. Thank you for this awesome design :)

Author

FreakyCoder, kurayogun@gmail.com

License

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