npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-category-card

v0.2.0

Published

<img alt="React Native Category Card" src="assets/logo.png" width="686"/>

Downloads

23

Readme

Demo

Installation

Add the dependency:

npm i react-native-category-card

Peer Dependencies

IMPORTANT! You need install them
"react-native-androw": ">= 0.0.34",
"react-native-linear-gradient": ">= 2.5.6",
"@freakycoder/react-native-bounceable": ">= 0.1.1"

Usage

Import

import CategoryCard from "react-native-category-card";

CategoryCard Usage

<CategoryCard onPress={() => console.log("Fruits")} />
<CategoryCard
  titleText={"Meat & Poultry"}
  descriptionText={"Butcher"}
  count={1}
  disableRightButton
  titleColor="#E8B730"
  descriptionColor="#edd695"
  onPress={() => console.log("Meat & Poultry")}
/>
<CategoryCard
  titleText={"Pantry"}
  descriptionText="Fresh Food"
  disableRightButton
  count={8}
  gradientColors={["#E5D1FA", "#C69CF4", "#A866EE"]}
  imageSource={require("./lib/asset/star.png")}
  onPress={() => console.log("Pantry")}
/>

Configuration - Props

| Property | Type | Default | Description | | -------------------------- | :-------: | :-------------------------------: | ---------------------------------------------------------- | | shadowStyle | style | default | change the shadowStyle | | shadowColor | string | '#757575' | change the shadowColor | | height | number | | change the containers height | | width | number | ScreenWidth * 0.8 | change the the containers width | | borderRadius | number | 16 | change the the containers borderRadius | | backgroundColor | string | '#fff' | change the containers backgroundColor | | gradientColors | array | ['#9CF4DF', '#30C9E8', '#107C91'] | change the Linear Gradient Colors | | imageStyle | style | default | change the left image style | | imageSource | asset | default | change the image source | | customImageComponent | component | default | set your own custom component instead of default Image one | | titleText | style | default | change the title text | | titleColor | string | "#4B4B4B" | change the title text color | | customTitleTextComponent | component | default | set your own custom component instead of default Text one | | descriptionText | string | | change the description text | | descriptionColor | string | "#B4B4B4" | change the description text color | | customDescriptionComponent | component | default | set your own custom component instead of default Text one | | count | number | 10 | change the count | | customCountTextComponent | component | default | set your own custom component instead of default Text one | | onPress | function | () | set your own function when onPress | | rightButtonImageSource | asset | default | change the right button image source | | buttonImageStyle | style | default | change the button image style | | disableRightButton | boolean | true | disable the right button |

Future Plans

  • [x] ~~LICENSE~~

Change Log

Change log will be here !

Author

Sevval Eygul, [email protected]

License

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