Easy to use & Ready to Go Fully Customizable Awesome Card Collections for React Native.
Add the dependency:
npm i react-native-card-collection
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
"react-native-vector-icons": ">= 6.4.2",
"react-native-material-ripple": ">= 0.8.0",
"react-native-dynamic-vector-icons": ">= 0.0.3",
"@freakycoder/react-native-helpers": ">= 0.0.12"
import { Card } from "react-native-card-collection";
import Container from "react-native-card-collection/components/Container/Container";
<Card headerText="Device Information">
<Container title="Device OS" subtitle"iOS" />
</Card>
In advanced usage you can use your own component as children it is all depends on you :)
import { Card } from "react-native-card-collection";
import Container from "react-native-card-collection/components/Container/Container";
<Card headerText="Device Information">
{children}
</Card>
Property | Type | Default | Description |
---|---|---|---|
headerText | string | "Screen Information" | change the Card's title |
Property | Type | Default | Description |
---|---|---|---|
title | string | "Device OS" | change the Container's title |
titleColor | color | gray | change the Container's title color |
titleFontSize | number | 13 | change the Container's title font size |
titleStyle | style | default | set your own style for the Container's title style |
subtitle | string | "" | change the Container's subtitle |
subtitleColor | string | "#222222" | change the Container's subtitle color |
subtitleFontSize | string | 15 | change the Container's subtitle font size |
subtitleStyle | style | default | set your own style for the Container's subtitle style |
- LICENSE
- Write an article about the lib on Medium
FreakyCoder, kurayogun@gmail.com
React Native Card Collection Library is available under the MIT license. See the LICENSE file for more info.