{"id":4250,"url":"https://github.com/xcarpentier/react-native-suggester","last_synced_at":"2025-04-14T10:22:41.468Z","repository":{"id":34072089,"uuid":"168492203","full_name":"xcarpentier/react-native-suggester","owner":"xcarpentier","description":"🔎 React-Native package to decorate TextInput and get suggestions with good UX","archived":false,"fork":false,"pushed_at":"2023-12-15T17:47:39.000Z","size":1230,"stargazers_count":59,"open_issues_count":18,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T23:33:04.351Z","etag":null,"topics":["react-native","textinput"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/xcarpentier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"xcarpentier","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-01-31T08:44:53.000Z","updated_at":"2024-10-05T14:44:59.000Z","dependencies_parsed_at":"2024-01-08T01:02:36.284Z","dependency_job_id":"51070824-daa5-4570-a830-218c1665c7ad","html_url":"https://github.com/xcarpentier/react-native-suggester","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/xcarpentier%2Freact-native-suggester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcarpentier%2Freact-native-suggester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcarpentier%2Freact-native-suggester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcarpentier%2Freact-native-suggester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xcarpentier","download_url":"https://codeload.github.com/xcarpentier/react-native-suggester/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248860227,"owners_count":21173386,"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":["react-native","textinput"],"created_at":"2024-01-05T20:17:05.800Z","updated_at":"2025-04-14T10:22:41.442Z","avatar_url":"https://github.com/xcarpentier.png","language":"TypeScript","funding_links":["https://github.com/sponsors/xcarpentier"],"categories":["Components","Others"],"sub_categories":["UI"],"readme":"\u003cp align=\"center\" \u003e\n   \u003ca href=\"https://reactnative.gallery/xcarpentier/react-native-suggester\"\u003e\n    \u003cimg alt=\"react-native-suggester\" src=\"https://thumbs.gfycat.com/BlueInferiorHorseshoecrab-size_restricted.gif\" width=\"260\" height=\"510\" /\u003e\n \u003c/a\u003e\n\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/react-native-suggester\"\u003e\n  \u003cimg alt=\"npm downloads\" src=\"https://img.shields.io/npm/dm/react-native-suggester.svg\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/react-native-suggester\"\u003e\u003cimg alt=\"npm version\" src=\"https://badge.fury.io/js/react-native-suggester.svg\"/\u003e\u003c/a\u003e\n  \u003ca href=\"#hire-an-expert\"\u003e\u003cimg src=\"https://img.shields.io/badge/%F0%9F%92%AA-hire%20an%20expert-brightgreen\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# react-native-suggester\n\nReact-Native package to decorate TextInput and get suggestions with good UX\n\n## How to use it ?\n\n```jsx\nimport { SuggesterProvider, SuggestTextInput } from 'react-native-suggester'\n\nconst DATA = [\n  { id: 1, value: 'Honda' },\n  { id: 2, value: 'BMW' },\n  { id: 3, value: 'Harley-Davidson' },\n  { id: 4, value: 'Yamaha' },\n  { id: 5, value: 'Kawasaki' },\n  { id: 6, value: 'Triumph' },\n  { id: 8, value: 'Ducati' },\n  { id: 9, value: 'Suzuki' },\n]\n\nexport default class App extends React.Component {\n  render() {\n    return (\n      \u003cSuggesterProvider\u003e\n        {/* somewhere in your app */}\n        \u003cSuggestTextInput name=\"field1\" data={DATA} style={styles.input} /\u003e\n      \u003c/SuggesterProvider\u003e\n    )\n  }\n}\n```\n\n### With HOC\n\n```jsx\nimport {\n  SuggesterProvider,\n  SuggestTextInput,\n  setSuggestOptions,\n} from 'react-native-suggester'\n\nsetSuggestOptions({\n  statusBarHeight: 10,\n  backgroundColor: 'white',\n  textColor: 'black',\n  textFont: 'System',\n  textFontSize: 16,\n  textWhenEmpty: '...',\n})\n\n@SuggesterProvider\nclass App extends React.Component {\n  render() {\n    return (\n      \u003cView\u003e\n        {/* somewhere in your app */}\n        \u003cSuggestTextInput name=\"field1\" data={DATA} style={styles.input} /\u003e\n      \u003c/View\u003e\n    )\n  }\n}\n```\n\n## Hire an expert!\n\nLooking for a ReactNative freelance expert with more than 12 years experience? Contact me from my [website](https://xaviercarpentier.com)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcarpentier%2Freact-native-suggester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxcarpentier%2Freact-native-suggester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcarpentier%2Freact-native-suggester/lists"}