{"id":14036283,"url":"https://github.com/sidevesh/react-native-material-cards","last_synced_at":"2025-04-06T16:13:13.332Z","repository":{"id":21788847,"uuid":"94039134","full_name":"sidevesh/react-native-material-cards","owner":"sidevesh","description":"A material design card component, customizable and versatile","archived":false,"fork":false,"pushed_at":"2024-04-10T13:56:08.000Z","size":1658,"stargazers_count":131,"open_issues_count":3,"forks_count":38,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-13T23:55:01.294Z","etag":null,"topics":["card","cards","google","material-design","react-native"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sidevesh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-06-11T23:59:00.000Z","updated_at":"2024-04-25T02:38:06.638Z","dependencies_parsed_at":"2023-02-16T07:30:58.537Z","dependency_job_id":"cc6046b6-b264-41d0-beb1-f7dccd9de3de","html_url":"https://github.com/sidevesh/react-native-material-cards","commit_stats":{"total_commits":83,"total_committers":9,"mean_commits":9.222222222222221,"dds":0.5542168674698795,"last_synced_commit":"90fc12e054daecaf555c3ea8e3412e366b58ef55"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidevesh%2Freact-native-material-cards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidevesh%2Freact-native-material-cards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidevesh%2Freact-native-material-cards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidevesh%2Freact-native-material-cards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sidevesh","download_url":"https://codeload.github.com/sidevesh/react-native-material-cards/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509236,"owners_count":20950232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["card","cards","google","material-design","react-native"],"created_at":"2024-08-12T03:01:54.580Z","updated_at":"2025-04-06T16:13:13.313Z","avatar_url":"https://github.com/sidevesh.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# react-native-material-cards\nA material design card component, customizable and versatile.\n\n![Images](http://i.imgur.com/iDym7bI.png)\n\nSee [Google Material Design](https://material.io/guidelines/components/cards.html) for more info on Cards.\n\n## Installation\n\n```sh\nnpm install --save react-native-material-cards\n```\n\n## Basic Usage\n\nImport the components like so:  \n```javascript\nimport { Card, CardTitle, CardContent, CardAction, CardButton, CardImage } from 'react-native-material-cards'\n```\n\nThen insert the card in your code:\n```js\n\u003cCard\u003e\n  \u003cCardImage \n    source={{uri: 'http://placehold.it/480x270'}} \n    title=\"Above all i am here\"\n  /\u003e\n  \u003cCardTitle \n    title=\"This is a title\" \n    subtitle=\"This is subtitle\"\n   /\u003e\n  \u003cCardContent text=\"Your device will reboot in few seconds once successful, be patient meanwhile\" /\u003e\n  \u003cCardAction \n    separator={true} \n    inColumn={false}\u003e\n    \u003cCardButton\n      onPress={() =\u003e {}}\n      title=\"Push\"\n      color=\"blue\"\n    /\u003e\n    \u003cCardButton\n      onPress={() =\u003e {}}\n      title=\"Later\"\n      color=\"blue\"\n    /\u003e\n  \u003c/CardAction\u003e\n\u003c/Card\u003e\n```\n\n## Card Component Options\n| Prop        | Type           | Effect  | Default Value |\n| ------------- |-------------| -----| -----|\n| `isDark` | `boolean` | If the card background is dark, sets a light text color, this prop is passed to all child components | `true` |\n| `mediaSource` | `object` | The image to show in background of a card, with content overlayed, passed to Image's `source` prop | `undefined` |\n| `avatarSource` | `object` | The avatar image to be shown in the card's content or header section, whichever comes first, passed to Image's `source` prop | `undefined` |\n| `style` | `object` | The style object to be merged with the default style of root container | `{}` |\n\n## CardTitle Component Options\n| Prop        | Type           | Effect  | Default Value |\n| ------------- |-------------| -----| -----|\n| `title` | `string` | The title text | `undefined` |\n| `subtitle` | `string` | The subtitle text | `undefined` |\n| `subtitleAbove` | `boolean` | Whether the subtitle should be shown above the title | `false` |\n| `avatarSource` | `object` | The avatar image to be shown, passed to Image's `source` prop | `undefined` |\n| `style` | `object` | The style object to be merged with the default style of root container | `{}` |\n| `titleStyle` | `object` | The style object to be merged with the default style of title text | `{}` |\n| `subtitleStyle` | `object` | The style object to be merged with the default style of subtitle text | `{}` |\n\n## CardContent Component Options\n| Prop        | Type           | Effect  | Default Value |\n| ------------- |-------------| -----| -----|\n| `text` | `string` | The content text, this can be skipped and any custom content can be rendered as children | `undefined` |\n| `avatarSource` | `object` | The avatar image to be shown, passed to Image's `source` prop | `undefined` |\n| `style` | `object` | The style object to be merged with the default style of root container | `{}` |\n| `textStyle` | `object` | The style object to be merged with the default style of text | `{}` |\n\n## CardImage Component Options\n| Prop        | Type           | Effect  | Default Value |\n| ------------- |-------------| -----| -----|\n| `source` | `object` | The image to be shown, passed to Image's `source` prop, , this can be skipped and any custom image or content can be rendered as children | `undefined` |\n| `resizeMode` | `string` | Determines how to resize the image when the frame doesn't match the raw image dimensions | `stretch` |\n| `resizeMethod` | `string` | Resize the image when the image's dimensions differ from the image view's dimensions. | `resize` |\n| `singleLineTitle` | `boolean` | Set to true if you want the title to be one line, redacted with ellipses | `true` |\n| `style` | `object` | The style object to be merged with the default style of root container | `{}` |\n| `textStyle` | `object` | The style object to be merged with the default style of text | `{}` |\n\n## CardAction Component Options\n| Prop        | Type           | Effect  | Default Value |\n| ------------- |-------------| -----| -----|\n| `separator` | `boolean` | Whether a separator should be shown | `true` |\n| `inColumn` | `boolean` | Whether the buttons should be stacked in a column | `false` |\n| `style` | `object` | The style object to be merged with the default style of root container | `{}` |\n\n## CardButton Component Options\n| Prop        | Type           | Effect  | Default Value |\n| ------------- |-------------| -----| -----|\n| `title` | `string` | The button's text, this can be skipped and any custom title or content can be rendered as children | `undefined` |\n| `color` | `string` | The color of button text | `orange` |\n| `onPress` | `function` | The function to be called when button is pressed | `noop` (defined in [`src/utils`](https://github.com/sidevesh/react-native-material-cards/blob/master/src/utils/index.js)) |\n| `style` | `object` | The style object to be merged with the default style of root container | `{}` |\n| `titleStyle` | `object` | The style object to be merged with the default style of button title | `{}` |\n\n### To do\n* Add cards with side media\n\nPRs are welcome :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidevesh%2Freact-native-material-cards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsidevesh%2Freact-native-material-cards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidevesh%2Freact-native-material-cards/lists"}