{"id":13754452,"url":"https://github.com/eyaleizenberg/react-native-floating-label-text-input","last_synced_at":"2025-05-09T23:32:39.185Z","repository":{"id":57337070,"uuid":"44721684","full_name":"eyaleizenberg/react-native-floating-label-text-input","owner":"eyaleizenberg","description":"A React Native component for floating label text input","archived":false,"fork":false,"pushed_at":"2020-07-30T05:56:03.000Z","size":31,"stargazers_count":285,"open_issues_count":21,"forks_count":83,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-16T08:32:18.147Z","etag":null,"topics":[],"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/eyaleizenberg.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-10-22T04:14:56.000Z","updated_at":"2024-04-30T07:38:17.000Z","dependencies_parsed_at":"2022-09-12T11:10:13.154Z","dependency_job_id":null,"html_url":"https://github.com/eyaleizenberg/react-native-floating-label-text-input","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyaleizenberg%2Freact-native-floating-label-text-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyaleizenberg%2Freact-native-floating-label-text-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyaleizenberg%2Freact-native-floating-label-text-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyaleizenberg%2Freact-native-floating-label-text-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eyaleizenberg","download_url":"https://codeload.github.com/eyaleizenberg/react-native-floating-label-text-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253341969,"owners_count":21893547,"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-03T10:00:19.742Z","updated_at":"2025-05-09T23:32:38.920Z","avatar_url":"https://github.com/eyaleizenberg.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","React Native"],"sub_categories":[],"readme":"## React Native Floating Label Text Input\n\n### What is this?\nThis component will render an iOS styled text field with floating label animation. When there is no value, the placeholder will be centered. Once there is a value, the value will slide down and the label will fade in and slide up.\n\nCredits for the concept to Matt D. Smith ([@mds](http://www.twitter.com/mds)), and his [original design](http://dribbble.com/shots/1254439--GIF-Mobile-Form-Interaction?list=users).\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src =\"http://i.imgur.com/5dddNix.gif\" /\u003e\n\u003c/p\u003e\n\n### Installation\n```npm install react-native-floating-label-text-input --save```\n\n### Usage example\n\n```javascript\nimport FloatLabelTextInput from 'react-native-floating-label-text-input';\n\nclass SomeComponent extends Component {\n  render () {\n    return (\n      \u003cView\u003e\n        \u003cFloatLabelTextInput\n          placeholder={\"name of field\"}\n          value={\"value of field\"}\n          onFocus={@myFocusFunction}\n          onBlur={@onBlurFunction}\n        /\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n```\n\n### Component props\n- placeholder (String) - String that will be used as the placeholder if there is no value. It will also be the string used for the label when there is a value.\n- secureTextEntry (Bool) - If true, the text input obscures the text entered so that sensitive text like passwords stay secure. The default value is false.\n- keyboardType (Enum) - enum('default', 'email-address', 'numeric', 'phone-pad', 'ascii-capable', 'numbers-and-punctuation', 'url', 'number-pad', 'name-phone-pad', 'decimal-pad', 'twitter', 'web-search').\n- value (String) - Value of the text input.\n- onFocus (Function) - Function to be called on focus.\n- onBlur (Function) - Function to be called on blur.\n- onChangeTextValue (Function) - Function to be called when text is modified.\n- noBorder (Boolean) - Hide the border bottom of the field.\n- maxLength (Number) - Limits the maximum number of characters that can be entered. Use this instead of implementing the logic in JS to avoid flicker.\n- selectionColor (String) - The highlight (and cursor on ios) color of the text input.\n\n### Questions/Bugs/Ideas?\nFeel free to open an issue on github, send suggestions, fork this repository or contact me at eyal.eizenberg@samanage.com\n\nThis package was developed during my work at [Samanage](http://www.samanage.com/).\n\nThanks and Enjoy! :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyaleizenberg%2Freact-native-floating-label-text-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feyaleizenberg%2Freact-native-floating-label-text-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyaleizenberg%2Freact-native-floating-label-text-input/lists"}