{"id":13703201,"url":"https://github.com/wix-incubator/react-native-keyboard-aware-scrollview","last_synced_at":"2025-04-04T18:09:41.492Z","repository":{"id":6886416,"uuid":"55555186","full_name":"wix-incubator/react-native-keyboard-aware-scrollview","owner":"wix-incubator","description":"Created by artald","archived":false,"fork":false,"pushed_at":"2023-10-20T23:10:03.000Z","size":16747,"stargazers_count":493,"open_issues_count":51,"forks_count":96,"subscribers_count":47,"default_branch":"master","last_synced_at":"2025-03-24T22:34:37.119Z","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/wix-incubator.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-05T21:37:44.000Z","updated_at":"2025-02-27T10:19:52.000Z","dependencies_parsed_at":"2024-06-18T12:36:17.377Z","dependency_job_id":"fab321ad-79c0-43ad-9287-4510720636f8","html_url":"https://github.com/wix-incubator/react-native-keyboard-aware-scrollview","commit_stats":null,"previous_names":["wix/react-native-keyboard-aware-scrollview"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wix-incubator%2Freact-native-keyboard-aware-scrollview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wix-incubator%2Freact-native-keyboard-aware-scrollview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wix-incubator%2Freact-native-keyboard-aware-scrollview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wix-incubator%2Freact-native-keyboard-aware-scrollview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wix-incubator","download_url":"https://codeload.github.com/wix-incubator/react-native-keyboard-aware-scrollview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226215,"owners_count":20904465,"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-08-02T21:00:51.752Z","updated_at":"2025-04-04T18:09:41.442Z","avatar_url":"https://github.com/wix-incubator.png","language":"JavaScript","funding_links":[],"categories":["Others","JavaScript"],"sub_categories":[],"readme":"# react-native-keyboard-aware-scrollview\nA helper component meant to be used as a drop-in replacement for RN ScrollView which handles the ScrollView insets properly when the keyboard is shown or hides so all the content is scrollable and available to the user.\n\n## Installation\n\nInstall using `npm`:\n```\nnpm i react-native-keyboard-aware-scrollview --save\n```\n\n## How To Use\nSimply import the new component:\n\n```js\nimport {KeyboardAwareScrollView} from 'react-native-keyboard-aware-scrollview'\n```\n\nNow use it as you would normally do with a `ScrollView` to wrap arround TextInput components:\n\n```jsx\n\u003cKeyboardAwareScrollView style={styles.container}\u003e\n    \u003cTextInput style={styles.textInput} placeholder={'My Input'}/\u003e\n\u003c/KeyboardAwareScrollView\u003e\n```\n\n#### Auto-Scrolling for TextInput components\n\nNormally this component will just take care of handling the content inset. If you wish for `KeyboardAwareScrollView` to automatically scroll to a TextInput that gets focus (so it's ensured to be visible), you can add an attribute called `getTextInputRefs` - a callback in which you can return an array of references to the TextInput components that auto-scrolling to be handled for. `KeyboardAwareScrollView` will look for the focused TextInput in the array and make sure it's visible by scrolling to it's location.\n\nExample:\n\n```jsx\n\u003cKeyboardAwareScrollView style={styles.container} getTextInputRefs={() =\u003e { return [this._textInputRef];}}\u003e\n    \u003cTextInput style={styles.textInput} placeholder={'My Input'} ref={(r) =\u003e { this._textInputRef = r; }}/\u003e\n\u003c/KeyboardAwareScrollView\u003e\n```\n\n## Example Project\n\nCheck out the full example project [here](https://github.com/wix/react-native-keyboard-aware-scrollview/tree/master/example).\n\nIn the example folder, perform `npm install` and then run it from the Xcode project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwix-incubator%2Freact-native-keyboard-aware-scrollview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwix-incubator%2Freact-native-keyboard-aware-scrollview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwix-incubator%2Freact-native-keyboard-aware-scrollview/lists"}