{"id":18960288,"url":"https://github.com/gemcook/react-native-animated-scroll-view","last_synced_at":"2025-06-15T01:33:56.986Z","repository":{"id":37525368,"uuid":"357737728","full_name":"gemcook/react-native-animated-scroll-view","owner":"gemcook","description":"A component that animates the header when the content is scrolled.","archived":false,"fork":false,"pushed_at":"2025-04-09T23:35:51.000Z","size":2810,"stargazers_count":16,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T00:29:24.149Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/gemcook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-14T01:33:20.000Z","updated_at":"2025-04-09T10:18:17.000Z","dependencies_parsed_at":"2024-06-10T23:44:16.894Z","dependency_job_id":"c572c22a-296f-464b-a082-95589cf19e91","html_url":"https://github.com/gemcook/react-native-animated-scroll-view","commit_stats":{"total_commits":88,"total_committers":7,"mean_commits":"12.571428571428571","dds":0.5681818181818181,"last_synced_commit":"2c714659d93e8821e788c608c94bdfe8756c01eb"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemcook%2Freact-native-animated-scroll-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemcook%2Freact-native-animated-scroll-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemcook%2Freact-native-animated-scroll-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemcook%2Freact-native-animated-scroll-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gemcook","download_url":"https://codeload.github.com/gemcook/react-native-animated-scroll-view/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249181108,"owners_count":21225846,"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-11-08T14:05:16.764Z","updated_at":"2025-04-16T01:26:33.755Z","avatar_url":"https://github.com/gemcook.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-animated-scroll-view\n\nA component that animates the header when the content is scrolled.\n\n![example1](https://user-images.githubusercontent.com/41561321/129012122-6677bdc3-6fb5-4f08-9104-028be504cf42.gif)\n\n## Installation\n\n```sh\nnpm install @gemcook/react-native-animated-scroll-view\n```\n\nor yarn\n\n```sh\nyarn add @gemcook/react-native-animated-scroll-view\n```\n\n## Usage\n\nSimple to use\n\n```tsx\nimport * as React from 'react';\nimport { StyleSheet, View, Text } from 'react-native';\nimport { ScrollView } from 'react-native-animated-scroll-view';\n\nconst DATA = Array.from({ length: 30 }).map((_, index) =\u003e ({ id: index }));\nconst maxHeaderHeight = 150;\nconst minHeaderHeight = 50;\n\nexport default function App() {\n  return (\n    \u003cView style={styles.container}\u003e\n      \u003cScrollView\n        maxHeaderHeight={maxHeaderHeight}\n        minHeaderHeight={minHeaderHeight}\n        AnimationHeaderComponent={\u003cView style={styles.animationHeader} /\u003e}\n      \u003e\n        {DATA.map((item) =\u003e {\n          return (\n            \u003cView style={styles.listItem} key={item.id}\u003e\n              \u003cText\u003e{item.id}\u003c/Text\u003e\n            \u003c/View\u003e\n          );\n        })}\n      \u003c/ScrollView\u003e\n    \u003c/View\u003e\n  );\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n  },\n  listItem: {\n    width: '100%',\n    height: 60,\n    justifyContent: 'center',\n    alignItems: 'center',\n  },\n  animationHeader: {\n    backgroundColor: 'red',\n    height: '100%',\n    width: '100%',\n  },\n});\n```\n\nIt can be used not only for `ScrollView`, but also for `FlatList` or `SectionList`\n\n```tsx\nimport {\n  ScrollView,\n  FlatList,\n  SectionList,\n} from 'react-native-animated-scroll-view';\n```\n\n## Props\n\nEach component inherits the Props of the original component\n\n| Props                    | type      | description               | required | default |\n| :----------------------- | :-------- | :------------------------ | :------- | :------ |\n| AnimationHeaderComponent | ReactNode | AnimationHeader component | false    | --      |\n| animationHeaderStyle     | ViewStyle | AnimationHeader style     | false    | --      |\n| maxHeaderHeight          | number    | Header maximum height     | true     | --      |\n| minHeaderHeight          | number    | Header minimum height     | true     | --      |\n| floating                 | boolean   | Whether or not the header should appear immediately when the user scrolls upward     | false     | false      |\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemcook%2Freact-native-animated-scroll-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgemcook%2Freact-native-animated-scroll-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemcook%2Freact-native-animated-scroll-view/lists"}