{"id":15038110,"url":"https://github.com/andr3whur5t/react-native-keyboard-spacer","last_synced_at":"2025-05-14T17:02:34.409Z","repository":{"id":41416676,"uuid":"44139770","full_name":"Andr3wHur5t/react-native-keyboard-spacer","owner":"Andr3wHur5t","description":"Plug and play react-native keyboard spacer view.","archived":false,"fork":false,"pushed_at":"2023-05-03T05:21:03.000Z","size":29,"stargazers_count":1560,"open_issues_count":36,"forks_count":220,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-05T19:08:02.891Z","etag":null,"topics":["clean-code","helper","ios","keyboard","react-native"],"latest_commit_sha":null,"homepage":"","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/Andr3wHur5t.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}},"created_at":"2015-10-12T23:29:34.000Z","updated_at":"2025-03-31T10:04:00.000Z","dependencies_parsed_at":"2023-10-20T17:06:25.255Z","dependency_job_id":"f65ba3d4-16c9-420e-bcc1-0dbf71b87687","html_url":"https://github.com/Andr3wHur5t/react-native-keyboard-spacer","commit_stats":{"total_commits":40,"total_committers":14,"mean_commits":2.857142857142857,"dds":0.55,"last_synced_commit":"83636c1ce5d74929076b34450085d720f93ecf04"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andr3wHur5t%2Freact-native-keyboard-spacer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andr3wHur5t%2Freact-native-keyboard-spacer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andr3wHur5t%2Freact-native-keyboard-spacer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andr3wHur5t%2Freact-native-keyboard-spacer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Andr3wHur5t","download_url":"https://codeload.github.com/Andr3wHur5t/react-native-keyboard-spacer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631670,"owners_count":21136554,"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":["clean-code","helper","ios","keyboard","react-native"],"created_at":"2024-09-24T20:37:09.440Z","updated_at":"2025-04-12T20:40:24.802Z","avatar_url":"https://github.com/Andr3wHur5t.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM](https://nodei.co/npm-dl/react-native-keyboard-spacer.png?months=3\u0026height=2)](https://nodei.co/npm/react-native-keyboard-spacer/)\n\n# react-native-keyboard-spacer\n\nPlug and play iOS react-native keyboard spacer view.\n\n![image](https://media.giphy.com/media/3oEjHJwLyYg7upTyYo/giphy.gif)\n## Quick Start\n\nInstall View: `npm install --save react-native-keyboard-spacer`\n\n## Example Usage\n\nThe view will automatically perform a layout animation when the keyboard appears or disappears.\n\n```javascript\nimport KeyboardSpacer from 'react-native-keyboard-spacer';\nimport React, { Component } from 'react';\nimport {\n  AppRegistry,\n  StyleSheet,\n  Image,\n  View,\n  TextInput\n} from 'react-native';\n\nclass DemoApp extends Component {\n  render() {\n    return (\n      \u003cView style={[{flex: 1}]}\u003e\n        {/* Some random image to show scaling */}\n        \u003cImage source={{uri: 'http://img11.deviantart.net/072b/i/2011/206/7/0/the_ocean_cherry_tree_by_tomcadogan-d41nzsz.png', static: true}}\n                 style={{flex: 1}}/\u003e\n\n        {/* The text input to put on top of the keyboard */}\n        \u003cTextInput style={{left: 0, right: 0, height: 45}}\n              placeholder={'Enter your text!'}/\u003e\n\n        {/* The view that will animate to match the keyboards height */}\n        \u003cKeyboardSpacer/\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n\nAppRegistry.registerComponent('DemoApp', () =\u003e DemoApp);\n```\n### Properties - Basic\n\n| Prop  | Default  | Type | Description |\n| :------------ |:---------------:| :---------------:| :-----|\n| topSpacing | 0 | `number` | Add or subtract additional spacing from keyboard height |\n| animationConfig | [A default animation](https://github.com/Andr3wHur5t/react-native-keyboard-spacer/blob/expose-layout-animations/KeyboardSpacer.js#L14) | `LayoutAnimationConfig` | [LayoutAnimation](https://facebook.github.io/react-native/docs/layoutanimation.html#content) configuration object |\n\n### Properties - Methods\n\n| Prop  | Params  | Type | Description |\n| :------------ |:---------------:| :---------------:| :-----|\n| onToggle | `toggleState` | `function` | onToggle method is called when when keyboard toggles. Two parameters passed through, keyboardState (boolean, true if keyboard shown) and keyboardSpace (height occupied by keyboard) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandr3whur5t%2Freact-native-keyboard-spacer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandr3whur5t%2Freact-native-keyboard-spacer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandr3whur5t%2Freact-native-keyboard-spacer/lists"}