{"id":25527173,"url":"https://github.com/moschan/react-native-flip-card","last_synced_at":"2025-05-16T03:05:10.648Z","repository":{"id":3589374,"uuid":"50235964","full_name":"moschan/react-native-flip-card","owner":"moschan","description":"The card component which has a motion of flip for React Native(iOS/Android)","archived":false,"fork":false,"pushed_at":"2023-02-13T14:55:22.000Z","size":482,"stargazers_count":391,"open_issues_count":26,"forks_count":109,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-14T16:02:59.698Z","etag":null,"topics":["animation","card-component","react","react-native"],"latest_commit_sha":null,"homepage":"","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/moschan.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}},"created_at":"2016-01-23T11:40:52.000Z","updated_at":"2025-04-24T19:51:11.000Z","dependencies_parsed_at":"2022-08-06T14:15:11.306Z","dependency_job_id":null,"html_url":"https://github.com/moschan/react-native-flip-card","commit_stats":{"total_commits":95,"total_committers":28,"mean_commits":3.392857142857143,"dds":0.6105263157894737,"last_synced_commit":"964cb120507754fa34f2e32a7ab61d24446652ab"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moschan%2Freact-native-flip-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moschan%2Freact-native-flip-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moschan%2Freact-native-flip-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moschan%2Freact-native-flip-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moschan","download_url":"https://codeload.github.com/moschan/react-native-flip-card/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459088,"owners_count":22074605,"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":["animation","card-component","react","react-native"],"created_at":"2025-02-19T22:17:27.790Z","updated_at":"2025-05-16T03:05:05.634Z","avatar_url":"https://github.com/moschan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"react-native-flip-card\n===\n\n\u003e The card component which have motion of flip for React Native(iOS/Android)\n\n[![NPM](https://nodei.co/npm/react-native-flip-card.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/react-native-flip-card/)\n\n[![npm](https://img.shields.io/npm/v/react-native-flip-card.svg)]()[![npm](https://img.shields.io/npm/l/react-native-flip-card.svg)]()\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) [![forthebadge](http://forthebadge.com/images/badges/uses-js.svg)](http://forthebadge.com)\n\nDemo\n---\n![](./doc/ver3_android_demo.gif)\n\n\nInstallation\n==\n\nin Cli\n---\n```\nnpm i react-native-flip-card\n```\n\n\nUsage\n===\n\nSimple\n---\n```\nimport FlipCard from 'react-native-flip-card'\n\n\u003cFlipCard\u003e\n  {/* Face Side */}\n  \u003cView style={styles.face}\u003e\n    \u003cText\u003eThe Face\u003c/Text\u003e\n  \u003c/View\u003e\n  {/* Back Side */}\n  \u003cView style={styles.back}\u003e\n    \u003cText\u003eThe Back\u003c/Text\u003e\n  \u003c/View\u003e\n\u003c/FlipCard\u003e\n```\n\nCustomized\n---\n```\n\u003cFlipCard \n  style={styles.card}\n  friction={6}\n  perspective={1000}\n  flipHorizontal={true}\n  flipVertical={false}\n  flip={false}\n  clickable={true}\n  onFlipEnd={(isFlipEnd)=\u003e{console.log('isFlipEnd', isFlipEnd)}}\n\u003e\n  {/* Face Side */}\n  \u003cView style={styles.face}\u003e\n    \u003cText\u003eThe Face\u003c/Text\u003e\n  \u003c/View\u003e\n  {/* Back Side */}\n  \u003cView style={styles.back}\u003e\n    \u003cText\u003eThe Back\u003c/Text\u003e\n  \u003c/View\u003e\n\u003c/FlipCard\u003e\n```\n\nProps\n===\n\nflip(bool) `Default: false`\n---\nIf you change default display side, you can set `true` to this param. If you change side, you can pass `bool` variable dynamically.\n\nclickable(bool) `Default: true`\n---\nIf you want to disable click a card, you can set `false` to this param.\n\nfriction(number) `Default: 6`\n---\nThe friction of card animation\n\nperspective(number) `Default: 0`\n---\nThe amount of perspective applied to the flip transformation\n\nflipHorizontal(bool) `Default: false`\n---\nIf you set true, a card flip to horizontal.\n\n![](./doc/ver2_horizontal.gif)\n\n\nflipVertical(bool) `Default: true`\n---\nIf you set false, a card not flip to vertical. If you set true both `flipHorizontal` and `flipVertical` , a card flip to diagonal.\n\n\nvertical | diagnoal\n---- | ----\n ![](./doc/ver2_vertical.gif)| ![](./doc/ver2_diagonal.gif)\n\nonFlipStart(function) `(isFlipStart) =\u003e {}`\n---\nWhen a card starts a flip animation, call `onFlipEnd` function with param.\n\nonFlipEnd(function) `(isFlipEnd) =\u003e {}`\n---\nWhen a card finishes a flip animation, call `onFlipEnd` function with param.\n\nalignHeight(boolean) `Default:false`\n---\nIf you pass `true` to `alignHeight` param, the card keep height of bigger side.\n\nalignWidth(boolean) `Default:false`\n---\nIf you pass `true` to `alignWidth` param, the card keep width of bigger side.\n\nuseNativeDriver(boolean) `Default:false`\n---\nIf you pass `true` to `useNativeDriver` param, the card animation will utilize the native driver.\n\nCredits\n===\nInspired by [react-flipcard](https://github.com/mzabriskie/react-flipcard)\n\n\nLicense\n===\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoschan%2Freact-native-flip-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoschan%2Freact-native-flip-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoschan%2Freact-native-flip-card/lists"}