{"id":4134,"url":"https://github.com/jacklam718/react-native-card-view","last_synced_at":"2025-07-03T19:37:29.057Z","repository":{"id":57335993,"uuid":"61473230","full_name":"jacklam718/react-native-card-view","owner":"jacklam718","description":"A react native card component","archived":false,"fork":false,"pushed_at":"2020-09-30T20:38:45.000Z","size":96,"stargazers_count":106,"open_issues_count":5,"forks_count":26,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-12-09T19:23:08.091Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacklam718.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-19T09:33:08.000Z","updated_at":"2023-03-11T12:20:08.000Z","dependencies_parsed_at":"2022-09-11T01:51:30.156Z","dependency_job_id":null,"html_url":"https://github.com/jacklam718/react-native-card-view","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklam718%2Freact-native-card-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklam718%2Freact-native-card-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklam718%2Freact-native-card-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklam718%2Freact-native-card-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacklam718","download_url":"https://codeload.github.com/jacklam718/react-native-card-view/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230547686,"owners_count":18243227,"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":[],"created_at":"2024-01-05T20:17:02.165Z","updated_at":"2024-12-20T07:07:37.094Z","avatar_url":"https://github.com/jacklam718.png","language":"JavaScript","funding_links":[],"categories":["Components","Others"],"sub_categories":["UI"],"readme":"# React Native Card View\nOnly tested in IOS, but I think should works in Android too.\n\n![Example](https://www.dropbox.com/s/44aildn3lhq9rik/react-native-card-view.gif?dl=1)\n\n\u003cbr\u003e\n\n\n\u003cimg src=\"https://www.dropbox.com/s/kxkltgzwokxkr5k/IMG_0359.PNG?dl=1\" width=\"300\"\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003cimg src=\"https://www.dropbox.com/s/9seffjkig865fo0/IMG_0360.PNG?dl=1\" width=\"300\"\u003e\n\n[Try it with Exponent](https://exp.host/@jacklam718/card-view-example)\n\n## Install\nnpm install --save react-native-card-view\n\n\n## Example\n##### \u003ca href=\"https://github.com/jacklam718/react-native-card-view/blob/master/example/CardExample.js\" target=\"_blank\"\u003eDetailed example\u003c/a\u003e\n\n##### Quick example here\n```javascript\nimport React, {Component} from 'react';\nimport {\n  StyleSheet\n} from 'react-native';\n\nimport {\n  Card,\n  CardImage,\n  CardTitle,\n  CardContent,\n  CardAction\n} from 'react-native-card-view';\n\nimport Button from 'react-native-button';\n\nClass Example extends Component {\n  render () {\n    return (\n      \u003cCard\u003e\n        \u003cCardTitle\u003e\n          \u003cText style={styles.title}\u003eCard Title\u003c/Text\u003e\n        \u003c/CardTitle\u003e\n        \u003cCardContent\u003e\n          \u003cText\u003eContent\u003c/Text\u003e\n        \u003c/CardContent\u003e\n        \u003cCardAction \u003e\n          \u003cButton\n            style={styles.button}\n            onPress={() =\u003e {}}\u003e\n            Button 1\n          \u003c/Button\u003e\n          \u003cButton\n            style={styles.button}\n            onPress={() =\u003e {}}\u003e\n            Button 2\n          \u003c/Button\u003e\n        \u003c/CardAction\u003e\n      \u003c/Card\u003e\n    );\n  }\n}\n\nconst styles = StyleSheet.create({\n  title: {\n    fontSize: 38,\n    backgroundColor: 'transparent'\n  },\n  button: {\n    marginRight: 10\n  }\n});\n```\n\n## Override Component Styles\n##### You can use you own style to override the following components style\n- Card\n- CardImage\n- CardTitle\n- CardContent\n- CardAction\n\nYou just pass the stytomles as an object and the key same as the component name\n\n##### Just like the following\n```javascript\nconst card      = {card: {width: 300, height: 300}};\nconst cardTitle = {cardTitle: {fontSize: 40}}\n\n\u003cCard styles={card}\u003e\u003c/Card\u003e\n\u003cCardTitle styles={cardTitle}\u003e\u003c/CardTitle\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacklam718%2Freact-native-card-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacklam718%2Freact-native-card-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacklam718%2Freact-native-card-view/lists"}