1.1.33 • Published 5 years ago
react-native-search-engine v1.1.33
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.
Documentation
React Native Search Engine Component
When you want to customize the component you need set this customizeComponentInput object:
Name | Description | Default | Type | Criterion |
---|---|---|---|---|
InputCutom | It is the input component that you want to set | undefine | Array | Optional |
addPropsInput | The properties that you want to pass to the custom component | undefine | Object | Optional |
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
Simpler way
<SearchEngine
data={data}
searchKey={'properties.emails.0'}
onChangeSearch={object => setOption(object)}
buttonEnabled={true}
placeholder={'email'}
/>
Complexer way
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
Author
Johan Navarro | https://johansolution.com
License
1.1.33
5 years ago
1.1.32
5 years ago
1.1.30
5 years ago
1.1.31
5 years ago
1.1.29
5 years ago
1.1.28
5 years ago
1.1.27
5 years ago
1.1.26
5 years ago
1.1.25
5 years ago
1.1.24
5 years ago
1.1.23
5 years ago
1.1.22
5 years ago
1.1.21
5 years ago
1.1.20
5 years ago
1.1.19
5 years ago
1.1.18
5 years ago
1.1.17
5 years ago
1.1.16
5 years ago
1.1.15
5 years ago
1.1.14
5 years ago
1.1.13
5 years ago
1.1.12
5 years ago
1.1.11
5 years ago
1.1.10
5 years ago
1.1.9
5 years ago
1.1.8
5 years ago
1.1.7
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.1
5 years ago
1.1.2
5 years ago
1.1.0
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago