{"id":27215401,"url":"https://github.com/acelyavul/react-native-datalist-input","last_synced_at":"2025-04-10T04:15:39.991Z","repository":{"id":63619098,"uuid":"566942127","full_name":"acelyavul/react-native-datalist-input","owner":"acelyavul","description":"A component built on top of React Native TextInput","archived":false,"fork":false,"pushed_at":"2023-06-27T18:29:27.000Z","size":1369,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T04:15:35.778Z","etag":null,"topics":["datalist","react-native","react-native-component","textinput"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@avul/react-native-datalist-input","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/acelyavul.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":"2022-11-16T18:33:17.000Z","updated_at":"2023-08-07T02:28:50.000Z","dependencies_parsed_at":"2023-01-22T23:31:00.429Z","dependency_job_id":null,"html_url":"https://github.com/acelyavul/react-native-datalist-input","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acelyavul%2Freact-native-datalist-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acelyavul%2Freact-native-datalist-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acelyavul%2Freact-native-datalist-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acelyavul%2Freact-native-datalist-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acelyavul","download_url":"https://codeload.github.com/acelyavul/react-native-datalist-input/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154991,"owners_count":21056544,"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":["datalist","react-native","react-native-component","textinput"],"created_at":"2025-04-10T04:15:39.220Z","updated_at":"2025-04-10T04:15:39.934Z","avatar_url":"https://github.com/acelyavul.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native Datalist Input\n\nThis package provides React Native TextInput component that contains a drop down menu to pick a possible option based on the current input.\n\n## Installation\n\nUsing NPM:\n\n```\nnpm i @avul/react-native-datalist-input react-native-get-random-values\n```\n\nUsing Yarn:\n\n```\nyarn add @avul/react-native-datalist-input react-native-get-random-values\n```\n\n## Demo\n\nhttps://user-images.githubusercontent.com/88436030/202266915-9b07e9ce-3bb1-4255-8dd2-ba20e86da53b.mp4\n\n## Usage\n\n```javascript\nimport React, {useState} from 'react';\nimport {StyleSheet, View, Text} from 'react-native';\nimport DatalistInput from '@avul/react-native-datalist-input';\n\nconst App = () =\u003e {\n  const [value, setValue] = useState('');\n\n  return (\n    \u003cView style={styles.screen}\u003e\n      \u003cText style={styles.titleStyle}\u003eDEMO\u003c/Text\u003e\n      \u003cDatalistInput\n        containerStyle={styles.containerStyle}\n        value={value}\n        onChangeText={text =\u003e setValue(text)}\n        data={['Javascript', 'JAVA', 'Python', 'C#', 'C++', 'R', 'PHP', 'Go']}\n        style={styles.inputStyle}\n        placeholder=\"Enter a language\"\n        placeholderTextColor=\"#cdcdcd\"\n      /\u003e\n    \u003c/View\u003e\n  );\n};\n\nconst styles = StyleSheet.create({\n  screen: {\n    flex: 1,\n    alignItems: 'center',\n    backgroundColor: '#2c2c2c',\n    justifyContent: 'center',\n  },\n  containerStyle: {\n    width: '80%',\n  },\n  inputStyle: {\n    color: '#cdcdcd',\n  },\n  titleStyle: {\n    color: '#cdcdcd',\n    fontSize: 18,\n    marginBottom: 15,\n  },\n});\n\nexport default App;\n```\n\n## Available Props\n\n| Prop                | Type            | Description                                                                                    |\n| ------------------- | --------------- | ---------------------------------------------------------------------------------------------- |\n| value               | String          | Required for controlled components. Value of the text input.                                   |\n| onChangeText        | Function        | Required for controlled components. Callback that is called when the textinput's text changes. |\n| data                | Array           | Required for controlled components. Array of values to be listed. Please see example.          |\n| containerStyle      | Array or Object | Optional. Styling of view element.                                                             |\n| style               | Array or Object | Optional. Styling of textinput element.                                                        |\n| menuStyle           | Array or Object | Optional. Styling of view element that contains datalist                                       |\n| menuItemStyle       | Array or Object | Optional. Styling of text element that belongs to datalist                                     |\n| ... TextInput props |                 | Optional. Please see [documentation](https://reactnative.dev/docs/textinput) for more details. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facelyavul%2Freact-native-datalist-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facelyavul%2Freact-native-datalist-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facelyavul%2Freact-native-datalist-input/lists"}