Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paraboly/react-native-card
Fully customizable Card View Components for React Native.
https://github.com/paraboly/react-native-card
card generic paraboly react react-native
Last synced: 8 days ago
JSON representation
Fully customizable Card View Components for React Native.
- Host: GitHub
- URL: https://github.com/paraboly/react-native-card
- Owner: Paraboly
- License: mit
- Created: 2019-02-25T09:02:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-21T12:12:00.000Z (8 months ago)
- Last Synced: 2024-09-22T21:48:24.122Z (about 2 months ago)
- Topics: card, generic, paraboly, react, react-native
- Language: TypeScript
- Homepage: http://www.paraboly.com
- Size: 1.88 MB
- Stars: 130
- Watchers: 3
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Fully customizable Card View for React Native.
[![npm version](https://img.shields.io/npm/v/@paraboly/react-native-card.svg)](https://www.npmjs.com/package/@paraboly/react-native-card)
[![npm](https://img.shields.io/npm/dt/@paraboly/react-native-card.svg)](https://www.npmjs.org/package/@paraboly/react-native-card)
![expo-compatible](https://img.shields.io/badge/Expo-compatible-9cf.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)## Card Component
## SimpleCard Component
## Version 1 is here 😍
Finally version 1 is here after 2 years :) Completely re-written with Typescript and much better props and customization options.
## Components included
- [x] [Card](https://github.com/Paraboly/react-native-card#basic-usage)
- [x] [SimpleCard](https://github.com/Paraboly/react-native-card#simplecard-basic-usage)## Installation
Add the dependency:
```ruby
npm i @paraboly/react-native-card
```## Peer Dependencies
##### IMPORTANT! You need install them
```bash
"react-native-vector-icons": ">= 7.1.0",
"react-native-dynamic-vector-icons": ">= 1.1.4",
"@freakycoder/react-native-bounceable": ">= 0.2.4"
```# Expo Version
## Installation
Add the dependency:
```ruby
npm i Paraboly/react-native-card#expo
```## Expo Dependencies
##### IMPORTANT! You need install them
```bash
"@freakycoder/react-native-bounceable": ">= 0.2.4"
````IconType` prop is available to set any icon set from `@expo/vector-icons`
You will also need to follow the installation instructions for [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons#installation)
## Basic Usage
```jsx
import { Card } from "@paraboly/react-native-card";{}}
/>;
```## Card with Icon
```jsx
{}}
/>
```## SimpleCard Basic Usage
```jsx
import { SimpleCard } from "@paraboly/react-native-card";;
```## SimpleCard Custom Usage
```jsx
```
### Example Application
- [check the code](examples/App.js), and yes! :) all of the images, screenshots are directly taken
from the this example. Of course, you can simply clone the project and run the example on your own environment.### Configuration - Props
| Name | Type | Description |
| ----------------------------- | --------------------- | ---------------------------------------------------------------------------------- |
| `backgroundColor` | `String` | The colour of the card's main background area
| `borderRadius` | `Number` | Changes the curvature size of the corners
| `bottomRightComponent` | `JSX.Element` |
| `bottomRightText` | `String` | Text displayed at the bottom right of the card
| `bottomRightTextStyle` | `CustomTextStyleProp` | Styling for the bottom right text
| `containerHeight` | `Number` | The height of the card
| `description` | `String` | The smaller descriptive text in the card
| `iconBackgroundColor` | `String` | The color of the area behind the icon
| `iconColor` | `String` | The colour of the icon
| `iconDisable` | `Boolean` |
| `iconName` | `String` | The name of the icon displayed. To hide the icon leave blank along with iconType (iconName="", iconType="")
| `iconSize` | `Number` | The size of the icon
| `iconType` | `String` | The icon library that the icon you want to use comes from. Choose from: "FontAwesome", "AntDesign", "MaterialIcons", "EvilIcons", "Entypo", "Foundation", "Ionicons", "MaterialCommunityIcons", "Zocial", "Octicons", "SimpleLineIcons", "Fontisto", "Feather", "FontAwesome5". To hide the icon leave blank along with iconName(iconName="", iconType="")
| `onPress` | `(() => void)` | Function to execute on press
| `shadowStyle` | `CustomStyleProp` |
| `style` | `CustomStyleProp` |Styling for the card
| `textContainerNumberOfLines` | `Number` | The number of lines in the card
| `title` | `String` | The text contained in the title area of the card
| `topRightComponent` | `JSX.Element` |
| `topRightText` | `String` | Text displayed at the top right of the card
| `topRightTextStyle` | `CustomTextStyleProp` | Styling for the top right text## Author
FreakyCoder, [email protected] | [email protected]
## License
Paraboly React Native Card Library is available under the MIT license. See the LICENSE file for more info.