New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-search-engine

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-search-engine

It is a type of search engine like the "html5's browsers input", it can be used to auto-complete words or to search for elements within an array or object.

latest
Source
npmnpm
Version
1.1.33
Version published
Maintainers
1
Created
Source

React Native Search Engine

Alert the library is subject to change at least the next 2 months.

>> Examples

It is a type of search engine like the "html5's browsers input", it can be used to auto-complete words or to search for elements within an array or object.

option 1 option 2 option 3 option 3

Documentation

React Native Search Engine Component

NameDescriptionDefaultTypeCriterion
searchKeyIf you are working with an array of objects and you want to search by a specific property that all objects have in common, can put something like 'user.name'""StringOptional
valueIf you want me to submit an initial search""StringOptional
dataThe data to searching[ ]ArrayOptional
textInfoStyleText information styles{ }ObjectOptional
buttonEnabledIf you want show or not the buttontrueBooleanOptional
showAllModeIf you want to show all options when it can't find anythingfalseBooleanOptional
showNoResultsDoesn't show the options, but the onChange Element gives me the filtered datafalseBooleanOptional
textInputStyleInput text styles{ }ObjectOptional
placeholderHelp text'Search'StringOptional
containerInputStyleStyles of input text containing{ }ObjectOptional
containerTextInfoStyleStyles of information text containing{ }ObjectOptional
containerTextErrorStyles of input text containing{ }ObjectOptional
textInfoStyleErrorStyles of information text containing{ }ObjectOptional
containerScrollStyleText tag container stylesl{ }ObjectOptional
containerButtonStyleOptions display styles{ }ObjectOptional
containerIconStyleIcon Styles{ }ObjectOptional
onChangeSearchGet the text or objectonChangeSearch={object => setOption(object)}FunctionOptional
customizeComponentInputUsed to return an input componentcustomizeComponentInputObjectOptional
customizComponenteResultIt is used to return an output component({ valueResult, element }) => < CustomizComponenteResult/>FunctionOptional
leftIconThis is used to customize the icon() => < leftIcon/>FunctionOptional
erroryou can set if have or no errorfalseBooleanOptional

When you want to customize the component you need set this customizeComponentInput object:

NameDescriptionDefaultTypeCriterion
InputCutomIt is the input component that you want to setundefineArrayOptional
addPropsInputThe properties that you want to pass to the custom componentundefineObjectOptional

Warning

Strings beginning with the following characters will not be found:

Characters
1+
2:
3(
4*
5?
6\
7[
8.
9^
10|
11)

How Implement

accessibility text

Simpler way

accessibility text accessibility text accessibility text accessibility text

     <SearchEngine
      data={data}
      searchKey={'properties.emails.0'}
      onChangeSearch={object => setOption(object)}
      buttonEnabled={true}
      placeholder={'email'}
    />

Complexer way

accessibility text

    import { Icon } from 'native-base';
    <SearchEngine
      data={data}
      searchKey={'properties.emails.0'}
      onChangeSearch={object => setOption(object)}
      buttonEnabled={true}
      placeholder={'email'}
      containerIconStyle={styles.containerIconStyle}
      containerInputStyle={styles.containerInputStyle}
      containerScrollStyle={styles.containerScrollStyle}
      containerTextInfoStyle={styles.containerTextInfoStyle}
      containerButtonStyle={styles.containerButtonStyle}
      leftIcon={() => <Icon name="arrow-down" />}
    />

Example

EXAMPLE CODE

Make a donation

Author

Johan Navarro | https://johansolution.com

License

GNU ©

Keywords

react-native-search

FAQs

Package last updated on 18 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts