{"id":4007,"url":"https://github.com/oblador/react-native-parallax","last_synced_at":"2025-06-14T14:09:28.548Z","repository":{"id":35463423,"uuid":"39731298","full_name":"oblador/react-native-parallax","owner":"oblador","description":"Parallax effects for React Native using Animated API","archived":false,"fork":false,"pushed_at":"2020-08-20T07:29:31.000Z","size":114,"stargazers_count":586,"open_issues_count":13,"forks_count":78,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-07T20:47:10.246Z","etag":null,"topics":[],"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/oblador.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":"2015-07-26T15:57:27.000Z","updated_at":"2025-03-24T07:45:42.000Z","dependencies_parsed_at":"2022-09-05T11:00:24.098Z","dependency_job_id":null,"html_url":"https://github.com/oblador/react-native-parallax","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/oblador/react-native-parallax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblador%2Freact-native-parallax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblador%2Freact-native-parallax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblador%2Freact-native-parallax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblador%2Freact-native-parallax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oblador","download_url":"https://codeload.github.com/oblador/react-native-parallax/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblador%2Freact-native-parallax/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259292958,"owners_count":22835508,"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:16:58.293Z","updated_at":"2025-06-14T14:09:28.526Z","avatar_url":"https://github.com/oblador.png","language":"JavaScript","funding_links":[],"categories":["Components","组件","Libraries","Others"],"sub_categories":["UI"],"readme":"# react-native-parallax\n\n**NOTE: This module requires React Native 0.8+**\n\n## Installation\n\n```\nnpm install --save react-native-parallax\n```\n\n## Usage\n\n*Note: `Parallax.Image` elements must be direct descendants of `Parallax.ScrollView`*\n\n```js\nvar Parallax = require('react-native-parallax');\n\nvar ParallaxView = React.createClass({\n  render: function() {\n    return (\n      \u003cParallax.ScrollView\u003e\n        \u003cParallax.Image\n          style={{ height: 200 }}\n          overlayStyle={{ backgroundColor: 'rgba(0,0,0,0.3)'}}\n          source={{ uri: 'http://loremflickr.com/640/480' }}\n        \u003e\n          \u003cText\u003eThis is optional overlay content\u003c/Text\u003e\n        \u003c/Parallax.Image\u003e\n      \u003c/Parallax.ScrollView\u003e\n    );\n  },\n});\n```\n\n## `Parallax.ScrollView` Properties\n\nAny [`ScrollView` property](http://facebook.github.io/react-native/docs/scrollview.html) and the following:\n\n| Prop | Description | Default |\n|---|---|---|\n|**`scrollViewComponent`**|What underlying component to compose around, must be `ScrollView` compatible. |`ScrollView`|\n\n## `Parallax.Image` Properties\n\nAny [`Image` property](http://facebook.github.io/react-native/docs/image.html) and the following:\n\n| Prop | Description | Default |\n|---|---|---|\n|**`onPress`**|Fired when element is tapped.|*None*|\n|**`imageStyle`**|Optional image style, `width` and `height` styles are set automatically.|*None*|\n|**`overlayStyle`**|Optional overlay style, might be useful if you want a shaded background for better readability. |*None*|\n|**`parallaxFactor`**|The speed of the parallax effect. Larger values require taller images or they will be zoomed in. |`0.2`|\n\n## Demo\n\n![Demo](https://cloud.githubusercontent.com/assets/378279/8894786/81b493f8-33c3-11e5-9a5a-8695642c6ee7.gif)\n\n## Example \n\nCheck full example in the `Example` folder. \n\n## License\n\n[MIT License](http://opensource.org/licenses/mit-license.html). © Joel Arvidsson\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foblador%2Freact-native-parallax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foblador%2Freact-native-parallax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foblador%2Freact-native-parallax/lists"}