{"id":25725037,"url":"https://github.com/xiewang/react-native-elastic-image-slider","last_synced_at":"2025-07-08T23:34:07.740Z","repository":{"id":57336717,"uuid":"95672287","full_name":"xiewang/react-native-elastic-image-slider","owner":"xiewang","description":"react-native-elastic-image-slider","archived":false,"fork":false,"pushed_at":"2017-08-29T12:13:40.000Z","size":3744,"stargazers_count":18,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T06:38:32.312Z","etag":null,"topics":["elastic","imageslider","react","react-native"],"latest_commit_sha":null,"homepage":null,"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/xiewang.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":"2017-06-28T13:32:16.000Z","updated_at":"2023-09-07T13:13:02.000Z","dependencies_parsed_at":"2022-09-11T10:12:28.653Z","dependency_job_id":null,"html_url":"https://github.com/xiewang/react-native-elastic-image-slider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xiewang/react-native-elastic-image-slider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiewang%2Freact-native-elastic-image-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiewang%2Freact-native-elastic-image-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiewang%2Freact-native-elastic-image-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiewang%2Freact-native-elastic-image-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiewang","download_url":"https://codeload.github.com/xiewang/react-native-elastic-image-slider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiewang%2Freact-native-elastic-image-slider/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264366563,"owners_count":23597056,"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":["elastic","imageslider","react","react-native"],"created_at":"2025-02-25T22:17:54.425Z","updated_at":"2025-07-08T23:34:07.681Z","avatar_url":"https://github.com/xiewang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-elastic-image-slider\n\nreact native elastic image slider component\n\n![emoticons](docs/demo.gif)\n\n## Install\n\n```js\nnpm install react-native-elastic-image-slider\n```\n\n## Usage\n\n### UI Component\n\n- step 1\n\n\tImport the component package.\n\t\n\t```js\n\timport ImageSlider from 'react-native-elastic-image-slider';\n\t```\n- step 2\n\n\tWrite the component code in the proper place of your page render.\n\t\n\t```js\n\t let images = [\n            {\n                width: 150,\n                height: 180,\n                uri: 'http://chuantu.biz/t5/152/1501134247x2890173753.jpg'\n            },\n            {\n                width: 200,\n                height: 320,\n                uri: 'http://chuantu.biz/t5/152/1501135055x3394041611.jpg'\n            },\n            {\n                width: 200,\n                height: 160,\n                uri: 'http://chuantu.biz/t5/152/1501134194x2890173753.jpg'\n            }\n        ];\n\t\u003cView style={{marginTop: 0,width:width}}\u003e\n                    \u003cImageSlide\n                        images={images}\n                        initialPosition={0}\n                        /\u003e\n     \u003c/View\u003e\n    ```\n\t\n\t\n### props\n\n| Prop | Type | Description | Required | Default |\n|---|---|---|---|---|\n|**`images`**|`array`| the images to slide |`Yes`|None|\n|**`initialPosition`**|`number`| initial one of all images to show|`No`|`0`|\n|**`style`**|`style`| custom style|`No`| None |\n\t\n##\tThanks\n\nInspired by [react-native-image-slider](https://github.com/PaulBGD/react-native-image-slider)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiewang%2Freact-native-elastic-image-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiewang%2Freact-native-elastic-image-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiewang%2Freact-native-elastic-image-slider/lists"}