0.1.2 • Published 5 years ago

react-native-circular-card-view v0.1.2

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

Battle Tested ✅

Fully customizable Circular Card View 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-circular-card-view

Peer Dependencies

IMPORTANT! You need install them.
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
"react-native-androw": ">= 0.0.33",
"react-native-vector-icons": ">= 6.6.0"
"react-native-material-ripple": ">= 0.8.0",
"react-native-dynamic-vector-icons": ">= 0.2.1",
"@freakycoder/react-native-helpers": ">= 0.0.21",

Import

import { CircularCard } from "react-native-circular-card-view";

Simple Usage

<CircularCard />

Advanced Custom Usage

Please check the example for the custom usage

<CircularCard
  title={title}
  price={price}
  color={color}
  source={image}
  priceText={price}
  description={description}
  rippleColor={rippleColor}
/>

Configuration - Props

PropertyTypeDefaultDescription
titlestringcheck the codeset the title
descriptionstringcheck the codeset the description
priceTextstringcheck the codeset the right bottom text
widthnumberScreenWidth * 0.9change the card's width
heightnumber125change the card's height
sourcestring (uri)Unsplash Stringset the image source as uri
shadowColorcolor#000change the card's shadow color
backgroundColorcolor#fcfcfcchange the card's main background color
iconOnPressfunctionnullset the icon onPress function
imageStylestylestyleset your own style for image
titleStylestylestyleset your own style for title
priceStylestylestyleset your own style for price
shadowStylestylestyleset your own style for shadow
descriptionStylestylestyleset your own style for description

ToDos

  • LICENSE
  • Write an article about the lib on Medium

Change Log

Credits

I could not find the artist of this design, please find me :)

Author

FreakyCoder, kurayogun@gmail.com

License

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