{"id":16454635,"url":"https://github.com/opengeekslab/react-native-preview-transition","last_synced_at":"2025-07-18T02:34:54.767Z","repository":{"id":57339203,"uuid":"150411218","full_name":"openGeeksLab/react-native-preview-transition","owner":"openGeeksLab","description":"Custom animation looks like table view. Written on JS for React-Native","archived":false,"fork":false,"pushed_at":"2018-10-02T12:43:52.000Z","size":2323,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-29T07:49:02.640Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://opengeekslab.com","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/openGeeksLab.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":"2018-09-26T10:45:48.000Z","updated_at":"2023-10-25T14:07:53.000Z","dependencies_parsed_at":"2022-09-13T17:14:29.911Z","dependency_job_id":null,"html_url":"https://github.com/openGeeksLab/react-native-preview-transition","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/openGeeksLab/react-native-preview-transition","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openGeeksLab%2Freact-native-preview-transition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openGeeksLab%2Freact-native-preview-transition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openGeeksLab%2Freact-native-preview-transition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openGeeksLab%2Freact-native-preview-transition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openGeeksLab","download_url":"https://codeload.github.com/openGeeksLab/react-native-preview-transition/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openGeeksLab%2Freact-native-preview-transition/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265692467,"owners_count":23812201,"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-10-11T10:19:30.792Z","updated_at":"2025-07-18T02:34:54.236Z","avatar_url":"https://github.com/openGeeksLab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://www.opengeekslab.com\"\u003e\n    \u003cimg\n      src=\"https://raw.githubusercontent.com/openGeeksLab/docs/master/header_github_Preview-transition.png\"\n      width=\"100%\"\n      title=\"openGeeksLab\"\n    /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003ca rel=\"nofollow\" href=\"http://developer.apple.com\"\u003e\n  \u003cimg\n    alt=\"iOS\"\n    src=\"https://img.shields.io/badge/platform-iOS-brightgreen.svg\" style=\"max-width:100%;\"\n  /\u003e\n\u003c/a\u003e\n\u003ca rel=\"nofollow\" href=\"https://www.android.com\"\u003e\n  \u003cimg\n    src=\"https://img.shields.io/badge/platform-Android-brightgreen.svg\"\n    alt=\"Android\"\n    data-canonical-src=\"https://img.shields.io/badge/platform-Android-brightgreen.svg\"\n    style=\"max-width:100%;\"\n  /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/openGeeksLab/react-native-expanding-collection-view\"\u003e\n  \u003cimg\n    src=\"https://img.shields.io/badge/npm-compatible-green.svg\"\n    alt=\"npm compatible\"\n    data-canonical-src=\"https://img.shields.io/badge/npm-compatible-green.svg\" style=\"max-width:100%;\"\n  /\u003e\n\u003c/a\u003e\n\u003ca href=\"http://twitter.com/openGeeksLab\" rel=\"nofollow\"\u003e\n  \u003cimg\n    src=\"https://img.shields.io/badge/Twitter-@openGeeksLab-blue.svg\"\n    alt=\"Twitter\"\n    data-canonical-src=\"https://img.shields.io/badge/Twitter-@openGeeksLab-blue.svg?style=flat\"\n    style=\"max-width:100%;\"\n  /\u003e\n\u003c/a\u003e\n\u003ca href=\"http://facebook.com/openGeeksLab/\"\u003e\n  \u003cimg\n    src=\"https://img.shields.io/badge/facebook-us-blue.svg\"\n    alt=\"Facebook\"\n    data-canonical-src=\"https://img.shields.io/badge/facebook-us-blue.svg\"\n    style=\"max-width:100%;\"\n  /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://medium.com/@openGeeksLab\"\u003e\n  \u003cimg\n    src=\"https://img.shields.io/badge/Medium-story-brightgreen.svg\"\n    alt=\"Medium\"\n    data-canonical-src=\"https://img.shields.io/badge/Medium-story-brightgreen.svg\"\n    style=\"max-width:100%;\"\n  /\u003e\n\u003c/a\u003e\n\n\u003cimg\n  src=\"https://raw.githubusercontent.com/openGeeksLab/docs/master/preview-transition.gif\" data-canonical-src=\"https://raw.githubusercontent.com/openGeeksLab/docs/master/preview-transition.gif\"\n  width=\"50%\"\n  height=\"50%\"\n  style=\"max-width:100%;\"\n/\u003e\n\n# react-native-preview-transition\n\n# About\nOur company provides custom UI design and development solutions for mobile applications and websites.\n\nNeed a team to create a project?\n\nThis project is developed and maintained by \u003ca href=\"https://www.openGeeksLab.com\"\u003eopenGeeksLab LLC.\u003c/a\u003e\n\n\u003ca href=\"mailto:info@opengeekslab.com?subject=Project%20inquiry%20from%20Github\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/openGeeksLab/docs/master/contact_our_team.png\" width=\"25%\" height=\"25%\" style=\"max-width:100%;\"\u003e\n\u003c/a\u003e\n\n\n## Requirements\n- React Native 0.50+\n- iOS 9.0+\n- Android 4.2+\n\n## Installation\nJust run:\n- npm i --save react-native-preview-transition\n\n## Basic usage\nThe Library needs to pass a data property that contains an array of objects with the img and title fields.\nimg - is the picture which needs to display.\ntitle - is the name displayed in the header.\nFor more detailed library work settings, you can transfer next properties: renderBottomBar, cardHeaderHeight, animationDuration, backgroundColor, cardDividerColor, titleTextStyle.\n\n```renderBottomBar``` - is the function that returns a component that will be displayed at the bottom of the window  \n```cardHeaderHeight``` - is the height of the opened card's header  \n```animationDuration``` - is the speed of the animation, opening, and closing of the card  \n```backgroundColor``` - is the color of the background of the list of cards  \n```cardDividerColor``` - is the color of the divider between the cards  \n```titleTextStyle``` - is the style of the header text  \n```titleContainerColor``` - is the color of the container that contains the name  \n\nThe full project using the library is located \u003ca href=\"https://github.com/openGeeksLab/react-native-preview-transition/tree/develop/example\"\u003ehere\u003c/a\u003e.\n\n```javascript\nimport React, { Component } from 'react';\nimport { StyleSheet, View } from 'react-native';\n\nimport PreviewTransition from 'react-native-preview-transition';\n\nimport IMAGE_BERTHE from './res/img/berthe_morisot.jpg';\nimport IMAGE_CLAUDE from './res/img/ClaudeMonet.jpg';\nimport IMAGE_EDGAR from './res/img/EdgarDegas.jpg';\nimport IMAGE_EDOUARD from './res/img/ÉdouardManet.jpg';\nimport IMAGE_PAUL from './res/img/PaulCézanne.jpg';\n\nconst data = [\n  {\n    title: 'Berthe Morisot',\n    liked: false,\n    img: IMAGE_BERTHE,\n  },\n  {\n    title: 'Claude Monet',\n    img: IMAGE_CLAUDE,\n  },\n  {\n    title: 'Edgar Degas',\n    liked: false,\n    img: IMAGE_EDGAR,\n  },\n  {\n    title: 'Édouard Manet',\n    liked: false,\n    img: IMAGE_EDOUARD,\n  },\n  {\n    title: 'Paul Cézanne',\n    liked: false,\n    img: IMAGE_PAUL,\n  },\n];\n\nexport default class App extends Component {\n  state = {\n    data,\n  }\n\n  render() {\n    return (\n      \u003cView style={styles.container}\u003e\n        \u003cPreviewTransition\n          data={this.state.data}\n        /\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n  },\n});\n```\n\n\n# Contact us if interested\n\u003ca href=\"https://opengeekslab.com/contact-us/\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/openGeeksLab/docs/master/contact_our_team.png\" width=\"25%\" height=\"25%\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\n\n# Licence\nExpanding is released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopengeekslab%2Freact-native-preview-transition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopengeekslab%2Freact-native-preview-transition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopengeekslab%2Freact-native-preview-transition/lists"}