{"id":24082490,"url":"https://github.com/interfacekit/react-native-js-material-searchbar","last_synced_at":"2025-04-30T18:01:35.647Z","repository":{"id":57337876,"uuid":"116939108","full_name":"InterfaceKit/react-native-js-material-searchbar","owner":"InterfaceKit","description":"A React Native material search bar that follows the Google's material design guidelines","archived":false,"fork":false,"pushed_at":"2018-02-05T14:31:06.000Z","size":175,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T10:24:52.579Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/InterfaceKit.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":"2018-01-10T09:45:07.000Z","updated_at":"2021-07-10T15:28:28.000Z","dependencies_parsed_at":"2022-09-03T07:20:25.948Z","dependency_job_id":null,"html_url":"https://github.com/InterfaceKit/react-native-js-material-searchbar","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InterfaceKit%2Freact-native-js-material-searchbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InterfaceKit%2Freact-native-js-material-searchbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InterfaceKit%2Freact-native-js-material-searchbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InterfaceKit%2Freact-native-js-material-searchbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InterfaceKit","download_url":"https://codeload.github.com/InterfaceKit/react-native-js-material-searchbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251758162,"owners_count":21638988,"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":"2025-01-09T23:47:00.950Z","updated_at":"2025-04-30T18:01:35.581Z","avatar_url":"https://github.com/InterfaceKit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-js-material-searchbar\n\n\u003cp\u003e\n\u003cimg src=\"https://img.shields.io/npm/dm/react-native-js-material-searchbar.svg\" /\u003e\n\u003cimg src=\"https://img.shields.io/npm/dt/react-native-js-material-searchbar.svg\" /\u003e\n\u003c/p\u003e\n\nA React Native material search bar for Android that follows the Google's material design guidelines.\nSee more on: https://material.io/guidelines/patterns/search.html#search-in-app-search\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./example.png\" alt=\"SearchBar\" height=\"100%\"\u003e\n\u003c/p\u003e\n\n## Getting started\n\n```sh\n$ yarn add react-native-js-material-searchbar\n```\n\n## Usage\n\nCode refers to the previous image example:\n\n```js\n// @flow */\n\nimport React from 'react'\nimport { AppRegistry, StyleSheet, View } from 'react-native'\nimport MaterialSearchBar from 'react-native-js-material-searchbar'\nimport MaterialIcons from 'react-native-vector-icons/MaterialIcons'\n\nexport default class Example extends React.PureComponent {\n  _onTextDidChange = (text: string) =\u003e {\n    console.log(text)\n  }\n\n  render() {\n    return (\n      \u003cView style={styles.container}\u003e\n        \u003cMaterialSearchBar\n          onChangeText={this._onTextDidChange}\n          containerStyle={styles.containerStyle}\n          styleInput={styles.styleInput}\n          placeholderTextColor={'white'}\n          placeholder={I18n.t('Search')}\n          searchIcon={\u003cMaterialIcons name=\"search\" size={24} color={'white'} /\u003e}\n          closeIcon={\u003cMaterialIcons name=\"close\" size={24} color={'white'} /\u003e}\n        /\u003e\n      \u003c/View\u003e\n    )\n  }\n}\n\nconst styles = StyleSheet.create({\n  containerStyle: {\n    flexDirection: 'row',\n    alignItems: 'center',\n    backgroundColor: 'orange',\n    elevation: 8,\n    paddingHorizontal: 12\n  },\n  styleInput: {\n    flex: 1,\n    height: 56,\n    color: 'white',\n    fontSize: 20,\n    fontFamily: 'Roboto'\n  }\n})\n```\n\n## API\n\n|     Props      |     Type      |                                            Description                                             | Required |\n| :------------: | :-----------: | :------------------------------------------------------------------------------------------------: | :------: |\n| containerStyle |    Object     |                                                                                                    |    No    |\n|   styleInput   |    Object     |                                  Inline-styles of the style input                                  |    No    |\n|   searchIcon   | React.Element | The displayed search icon on the right of the text input. `react-native-vector-icons` is supported |    No    |\n|   closeIcon    | React.Element | The displayed close icon on the right of the text input. `react-native-vector-icons` is supported  |    No    |\n|  onChangeText  |   Function    |                          Function executed when field's value is changed                           |          |\n\n## License\n\nMIT License\n\nCopyright (c) 2018 InterfaceKit\n\n## Author\n\nAntonio Moreno Valls `\u003camoreno at apsl.net\u003e`\n\nBuilt with 💛 by [APSL](https://github.com/apsl).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterfacekit%2Freact-native-js-material-searchbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterfacekit%2Freact-native-js-material-searchbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterfacekit%2Freact-native-js-material-searchbar/lists"}