{"id":21131660,"url":"https://github.com/crusaderincode/authinput","last_synced_at":"2025-12-31T00:24:31.003Z","repository":{"id":57187032,"uuid":"371120652","full_name":"crusaderincode/AuthInput","owner":"crusaderincode","description":"Set of authentication inputs for React Native including name, email, phone number and show/hide password.","archived":false,"fork":false,"pushed_at":"2021-05-28T12:21:22.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-11T13:15:24.505Z","etag":null,"topics":["authentification","hide-show","password","react","react-native","react-native-component"],"latest_commit_sha":null,"homepage":"","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/crusaderincode.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":"2021-05-26T17:40:06.000Z","updated_at":"2022-04-25T11:15:40.000Z","dependencies_parsed_at":"2022-08-28T13:00:18.718Z","dependency_job_id":null,"html_url":"https://github.com/crusaderincode/AuthInput","commit_stats":null,"previous_names":["gottliebglob/authinput"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crusaderincode%2FAuthInput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crusaderincode%2FAuthInput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crusaderincode%2FAuthInput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crusaderincode%2FAuthInput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crusaderincode","download_url":"https://codeload.github.com/crusaderincode/AuthInput/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243576066,"owners_count":20313342,"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":["authentification","hide-show","password","react","react-native","react-native-component"],"created_at":"2024-11-20T05:58:47.397Z","updated_at":"2025-12-31T00:24:30.951Z","avatar_url":"https://github.com/crusaderincode.png","language":"JavaScript","readme":"# Auth Input\n\n![alt-текст](https://github.com/GottliebGlob/AuthInput/blob/master/examples/images/image.jpg?raw=true \"Текст заголовка логотипа 1\")\n\nAuth Input is a React Native custom component, providing fields for entering name, password, phone number and email.\n## Installation\n\nInstall the package with NPM.\n\n```bash\nnpm i auth-input\n```\n\n## Usage\n\nUsage is very simple. Just add the component to your file.\n\n```javascript\nimport React, {useState} from 'react';\nimport { Text, View } from 'react-native';\nimport AuthInput from 'auth-input'\n\nexport default function App() {\n    const [email, setEmail] = useState('')\n    const [password, setPassword] = useState('')\n   \n    const emailHandler = (text) =\u003e {\n        setEmail(text)\n    }\n    const passwordHandler = (text) =\u003e {\n        setPassword(text)\n    }\n\n \n  return (\n                        \u003cAuthInput\n                            type=\"email\"\n                            label=\"E-Mail\"\n                            keyboardType=\"email-address\"\n                            minLength={5}\n                            maxLength={35}\n                            autoCapitalize=\"none\"\n                            errorText=\"Please, use a valid e-mail.\"\n                            onInputChange={emailHandler}\n                            value={email}\n                        /\u003e\n\n                        \u003cAuthInput\n                            type=\"password\"\n                            label=\"Password\"\n                            keyboardType=\"default\"\n                            minLength={5}\n                            maxLength={15}\n                            autoCapitalize=\"none\"\n                            errorText=\"Please, use a valid password.\"\n                            onInputChange={passwordHandler}\n                            value={password}\n                        /\u003e\n    \u003c/View\u003e\n  );\n}\n```\n\n## Properties\nProp | Type | Description | Default | Optional \n--- | --- | --- | --- |--- \ntype | string | Type of input (\"email\", \"phone\", \"name\" or \"password\") | - | no\nlabel| string | Text above the input | - | no\nkeyboardType | string | [Default Ract Native TextInput keyboard types](https://lefkowitz.me/visual-guide-to-react-native-textinput-keyboardtype-options/) | default | yes\nminLength| number| lower bound of text length | - | yes\nmaxLength| number| Upper limit of text length | - | yes\nerrorText| string | Text that appears when the user has entered incorrect data| - | no\nonInputChange| function| Input handler function | - | no\nvalue| string| Input state | - | no\nborderColor| string| Bottom border color | black | yes\nerrorTextColor| string| Error color | red | yes\ntextColor| string| Text color | black | yes\nlabelColor | string| Label above the input color | textColor | yes\nlabelColor | number| Label above the input font size | 20 | yes\n\nYou can use properties of [TextInput](https://reactnative.dev/docs/textinput).\n\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrusaderincode%2Fauthinput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrusaderincode%2Fauthinput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrusaderincode%2Fauthinput/lists"}