All Projects → ananddayalan → react-native-material-design-searchbar

ananddayalan / react-native-material-design-searchbar

Licence: MIT license
react native material design searchbar

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-material-design-searchbar

aurelia-mdl-plugin
Material Design Lite plugin for Aurelia.
Stars: ✭ 19 (-62.75%)
Mutual labels:  mdl
Zaloha2.sh
Small and simple directory synchronizer (a BASH script)
Stars: ✭ 50 (-1.96%)
Mutual labels:  find
herd-mdl
Herd-MDL, a turnkey managed data lake in the cloud. See https://finraos.github.io/herd-mdl/ for more information.
Stars: ✭ 11 (-78.43%)
Mutual labels:  mdl
search-ui
JavaScript library to develop Search UIs for the web
Stars: ✭ 16 (-68.63%)
Mutual labels:  searchbar
html-comment-regex
Regular expression for matching HTML comments
Stars: ✭ 15 (-70.59%)
Mutual labels:  find
vim-find-files
🔎 Search for files and show results in a quickfix list, new buffer, or populate the argument list.
Stars: ✭ 25 (-50.98%)
Mutual labels:  find
matched
Glob matching with support for multiple patterns and negation. Use `~` in cwd to find files in user home, or `@` for global npm modules.
Stars: ✭ 25 (-50.98%)
Mutual labels:  find
dicom-dimse-native
node js native addon for dimse services
Stars: ✭ 33 (-35.29%)
Mutual labels:  find
SearchTableView
UITableView subclass to easily search on tableView.
Stars: ✭ 13 (-74.51%)
Mutual labels:  searchbar
Issues-Hunt
Hunt for problems to solve using GitHub API. Save time searching for "good first issue" or "help wanted" labels.
Stars: ✭ 44 (-13.73%)
Mutual labels:  searchbar
source-engine-model-loader
Three.js loader for parsing Valve's Source Engine models
Stars: ✭ 54 (+5.88%)
Mutual labels:  mdl
Duplicate-Image-Finder
difPy - Python package for finding duplicate or similar images within folders
Stars: ✭ 187 (+266.67%)
Mutual labels:  find
ionic-selectable-demo
Ionic SelectSearchable Demo.
Stars: ✭ 22 (-56.86%)
Mutual labels:  searchbar
u2
幼兔娘
Stars: ✭ 17 (-66.67%)
Mutual labels:  mdl
WatchSomething
Project that uses an API to list movies and tv shows that are latest, popular, top rated & on air.
Stars: ✭ 11 (-78.43%)
Mutual labels:  find
SharpPanel
C# Admin Control Panel Finder For Windows
Stars: ✭ 34 (-33.33%)
Mutual labels:  find
gatling
Hydra-enabled GPU path tracer that supports MaterialX and MDL.
Stars: ✭ 159 (+211.76%)
Mutual labels:  mdl
react-native-wxui
A UI package for React Native
Stars: ✭ 21 (-58.82%)
Mutual labels:  searchbar
helm-fzf
Fzf using Helm as a front end
Stars: ✭ 16 (-68.63%)
Mutual labels:  find
campus-leaflets
校园传单是一个使用 Node.js、MongoDB、Koa、EJS、MDL、Less、RequireJS 和 Gulp 开发的 Node 应用程序。
Stars: ✭ 16 (-68.63%)
Mutual labels:  mdl

react-native-material-design-searchbar

A React Native Material Design SearchBar

Setup

Install the SearchBar from npm with npm i -S react-native-material-design-searchbar. Then, require it from your app's JavaScript files with import SearchBar from 'react-native-material-design-searchbar'. This library depends on react-native-vector-icons. Please link it by following their installation guide.

Usage

All props are optional except height.

import React, { Component } from 'react';
import SearchBar from 'react-native-material-design-searchbar';

export default class ExampleComponent extends Component {
  render() {
    return (
      <SearchBar
        onSearchChange={() => console.log('On Search Change')}
        height={50}
        onFocus={() => console.log('On Focus')}
        onBlur={() => console.log('On Blur')}
        placeholder={'Search...'}
        autoCorrect={false}
        padding={5}
        returnKeyType={'search'}
      />
    );
  }
};

Available Props

  • onSearchChange: Callback on search change
  • onClear: Callback when the 'X' button is pressed. This also calls onSearchChange with an empty string.
  • searchValue: Initializes the input field. Changing this prop does not change the input value.
  • onBackPress: Optional function, Callback on back icon pressed
  • alwaysShowBackButton: Optional bool, use if you want to always show the back button instead of search, default is false
  • iconCloseName: Optional string, use it to customize the close icon
  • iconSearchName: Optional string, use it to customize the search icon
  • iconBackName: Optional string, use it to customize the back icon
  • iconCloseComponent: Optional object, custom component for the close icon (overrides iconCloseName)
  • iconSearchComponent: Optional object, custom component for the search icon (overrides iconSearchName)
  • iconBackComponent: Optional object, custom component for the back icon (overrides iconBackName)
  • iconColor: Optional string, use it to define a different padding size, default is #737373
  • placeholder: Optional string, use it to customize the placeholder text, default is eSearch...
  • placeholderColor: Optional string, use it to define a different placeholder color, default is #bdbdbd
  • returnKeyType: Optional string, use it to customize the return key type
  • padding: Optional string, use it to define a different padding size, default is 5
  • inputStyle: Optional string, use it to pass your style to the containing View
  • inputProps: Optional object, use it to pass additional props to the TextInput, for example {autoFocus: true}
  • textStyle: Optional string, use it to pass your style to the TextInput

The React packager will include the SearchBar component in your app's JS package and make it available for your app to use.

Contributing

Contributions are welcome.

LICENSE

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].