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-health-card-sleek

v0.2.4

Published

React native health card display component

Downloads

58

Readme

React Native Health Card 🏥💳

npm badge

React Native Health Card is a module that displays a look-a-like health fund card on your react native view!

rn-health-card

Inspiration from @sonnylazuardi and @jessepollak

Usage

  • npm install react-native-health-card --save
  • Now you can require the health card by import HealthCard from 'react-native-health-card'!

Available Props

Property	|	Type		|	Default		|	Description

:-----------------------|:--------------|:--------------|:-------------------------------- bgColor | string | #419dff | The background color of the health card of type generic. cardHolderName | string | John Smith | Name of the card holder. cardNumber | string | N/A | The card number. Note: Only applicable for type bupa. cardNumberLength | string | N/A | The card number length. Note: Only applicable for type bupa. height | number | 180 | The height of the card. focus | string | all | The attribute to focus on. Available options: all, memberNumber, issueNumber, rank, issueDate, cardHolderName. issueDate | string | N/A | The card issue date. E.g. 12/12/2015 issueDateFormat | string | dd/mm/yyyy | Format of the issue date in the format of d, m, and y. issueNumber | string | N/A | The issue number to display on the card. issueNumberLength | string | 2 | The length of the issue number. memberNumber | string | N/A | The member number to display on the card. memberNumberLength | string | 8 | The member number length. rank | string | N/A | The card rank. rankLength | string | 2 | The card rank length. showBack | bool | false | Shows the back of the card. showCardHolderName | bool | true | Shows the name of the card holder. showCardNumber | bool | true | Shows the card number. Note: Only applicable for type bupa. showIssueDate | bool | true | Shows the card issue date. showIssueNumber | bool | true | Shows the issue number. showMembershipNumber | bool | true | Shows the membership number. showSwipeBar | bool | true | Whether or not to show the black swipe bar on the back of the card. showRank | bool | true | Shows the rank. type | string | generic | Type of health fund card. Available options: generic, ahm, bupa, mbp, hcf. (More coming soon) width | number | 300 | The width of the card.

Example

To run the example in the example/ folder:

  • Ensure you have react-native installed globally.
  1. cd example/
  2. npm install
  3. react-native run-ios
import HealthCard from 'react-native-health-card';

...
<HealthCard
  showSwipeBar
  focus="memberNumber"
  memberNumber="123456789"
  memberNumberLength={10}
  issueDate="01/01/2015"
  rank="01"
  issueNumber="02"
  showRank={false}
  type="medibank"
/>
...