You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@freakycoder/react-native-colorful-card

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@freakycoder/react-native-colorful-card

Fully customizable colorful card component for React Native.

0.1.3
latest
Source
npmnpm
Version published
Weekly downloads
35
52.17%
Maintainers
1
Weekly downloads
 
Created
Source
React Native Colorful Card

Battle Tested ✅

React Native Colorful Card

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

React Native Social Login Screen React Native Social Login Screen

Installation

Add the dependency:

npm i @freakycoder/react-native-colorful-card

Peer Dependencies

IMPORTANT! You need install them
"@freakycoder/react-native-bounceable": ">= 0.2.4"

Usage

Import

import ColorfulCard from "@freakycoder/react-native-colorful-card";

Fundamental Usage

<ColorfulCard
  title="Sleep"
  value="8"
  valuePostfix="h 42 m"
  footerTitle="Deep Sleep"
  footerValue="3h 13m"
  iconImageSource={require("./assets/sleep.png")}
  style={{ backgroundColor: "#7954ff" }}
  onPress={() => {}}
/>

Example Project 😍

You can checkout the example project 🥰

Simply run

  • npm i
  • react-native run-ios/android

should work of the example project.

Configuration - Props

Fundamentals

PropertyTypeDefaultDescription
titlestringundefinedchange the title string
valuestringundefinedchange the value string
valuePostfixstringundefinedchange the value postfix string
footerTitlestringundefinedchange the footerTitle string
footerValuestringundefinedchange the footerValue string
iconImageSourceimageundefinedset your own image source for the icon
onPressfunctionundefinedset your own logic for the button functionality when it is pressed

Customization (Optionals)

PropertyTypeDefaultDescription
styleViewStyledefaultset or override the style object for the main container
iconImageStyleImageStyledefaultset or override the image style object for the icon container
titleTextStyleTextStyledefaultset or override the text style object for the title text
footerTextStyleTextStyledefaultset or override the text style object for the footer text
valueTextStyleTextStyledefaultset or override the text style object for the value text
valuePostfixTextStyleTextStyledefaultset or override the text style object for the value postfix text
ImageComponentImagedefaultset your own component instead of default react-native Image component

Future Plans

  • LICENSE
  • Write an article about the lib on Medium

Author

FreakyCoder, kurayogun@gmail.com

Credits

Heavily inspired by WebFrontEndTips

License

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

Keywords

colorful-card

FAQs

Package last updated on 07 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.