{"id":24473483,"url":"https://github.com/tlackemann/react-native-cube-transition","last_synced_at":"2025-06-13T13:33:52.024Z","repository":{"id":57336358,"uuid":"77256630","full_name":"tlackemann/react-native-cube-transition","owner":"tlackemann","description":"React Native module for iOS that rotates components on a cube, similar to Instagram Stories.","archived":false,"fork":false,"pushed_at":"2016-12-24T20:37:11.000Z","size":12,"stargazers_count":60,"open_issues_count":3,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T04:13:56.075Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://lacke.mn/blog/react-native-experiments-instagram-stories/","language":"Objective-C","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/tlackemann.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}},"created_at":"2016-12-23T23:55:24.000Z","updated_at":"2023-07-27T09:25:33.000Z","dependencies_parsed_at":"2022-09-11T12:22:14.612Z","dependency_job_id":null,"html_url":"https://github.com/tlackemann/react-native-cube-transition","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/tlackemann%2Freact-native-cube-transition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlackemann%2Freact-native-cube-transition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlackemann%2Freact-native-cube-transition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlackemann%2Freact-native-cube-transition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tlackemann","download_url":"https://codeload.github.com/tlackemann/react-native-cube-transition/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234916058,"owners_count":18906643,"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":"2025-01-21T08:15:56.019Z","updated_at":"2025-01-21T08:15:56.619Z","avatar_url":"https://github.com/tlackemann.png","language":"Objective-C","funding_links":[],"categories":["Index"],"sub_categories":["Tutorials"],"readme":"# React Native Cube Transition\n\nReact Native module for iOS that rotates components on a cube, similar to Instagram Stories.\n\n![](https://thumbs.gfycat.com/EachFirmImperatorangel-size_restricted.gif)\n\n## Installation\n\nInstall the module from npm.\n\n```bash\nnpm install react-native-cube-transition --save\n```\n\n### iOS\n\nLink the framework in XCode.\n\n* Right click _Libraries_\n* Add Files to _[Your Project's Name]_\n* Go to `node_modules/react-native-cube-transition`\n* Add the `.xcodeproj` file\n* Add the `libRNCubeTransition.a` file under `Libraries \u003e RNCubeTransition.xcodeproj \u003e Products` to your project's `Build Phases \u003e Link Binary With Libraries`\n\n### Android\n\nNot supported, yet.\n\n## Usage\n\n```javascript\nimport React, { Component } from 'react';\nimport { Image, Dimensions, Text, StyleSheet, View } from 'react-native';\nimport { RNCubeTransition } from 'react-native-cube-transition';\n\nexport default class MyComponent extends Component {\n  render() {\n    return (\n      \u003cView style={styles.container}\u003e\n        \u003cRNCubeTransition style={styles.page}\u003e\n          \u003cView style={[styles.view, styles.view1]}\u003e\n            \u003cText style={styles.text}\u003e3D Cube Transitions Using React Native\u003c/Text\u003e\n          \u003c/View\u003e\n          \u003cImage\n            source={require('./assets/test-1.jpg')}\n            style={styles.image}\n          /\u003e\n          \u003cView style={[styles.view, styles.view2]}\u003e\n            \u003cText style={styles.text}\u003eUse View or Image components\u003c/Text\u003e\n          \u003c/View\u003e\n          \u003cImage\n            source={require('./assets/test-2.jpg')}\n            style={styles.image}\n          /\u003e\n          \u003cView style={[styles.view, styles.view2]}\u003e\n            \u003cText style={styles.text}\u003eEven Gifs\u003c/Text\u003e\n          \u003c/View\u003e\n          \u003cImage\n            source={require('./assets/test-3.gif')}\n            style={styles.image}\n          /\u003e\n        \u003c/RNCubeTransition\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n\nconst { width, height } = Dimensions.get('window');\nconst styles = StyleSheet.create({\n  container: {\n    justifyContent: 'center',\n    alignItems: 'center',\n    backgroundColor: '#F5FCFF',\n    flex: 1,\n  },\n  page: {\n    position: 'absolute',\n    flexDirection: 'row',\n    overflow: 'hidden',\n    top: 0,\n    bottom: 0,\n    left: 0,\n    right: 0,\n  },\n  image: {\n    resizeMode: 'stretch',\n    width,\n    height,\n  },\n  view: {\n    justifyContent: 'center',\n    alignItems: 'center',\n    width,\n    height,\n  },\n  text: {\n    color: '#FFF',\n    textAlign: 'center',\n    fontSize: 30,\n  },\n});\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlackemann%2Freact-native-cube-transition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftlackemann%2Freact-native-cube-transition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlackemann%2Freact-native-cube-transition/lists"}