Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
react-native-js-material-searchbar
Advanced tools
A React Native material search bar for Android that follows the Google's material design guidelines.
A React Native material search bar for Android that follows the Google's material design guidelines. See more on: https://material.io/guidelines/patterns/search.html#search-in-app-search
$ yarn add react-native-js-material-searchbar
Code refers to the previous image example:
// @flow */
import React from 'react'
import { AppRegistry, StyleSheet, View } from 'react-native'
import MaterialSearchBar from 'react-native-js-material-searchbar'
import MaterialIcons from 'react-native-vector-icons/MaterialIcons'
export default class Example extends React.PureComponent {
_onTextDidChange = (text: string) => {
console.log(text)
}
render() {
return (
<View style={styles.container}>
<MaterialSearchBar
onChangeText={this._onTextDidChange}
containerStyle={styles.containerStyle}
styleInput={styles.styleInput}
placeholderTextColor={'white'}
placeholder={I18n.t('Search')}
searchIcon={<MaterialIcons name="search" size={24} color={'white'} />}
closeIcon={<MaterialIcons name="close" size={24} color={'white'} />}
/>
</View>
)
}
}
const styles = StyleSheet.create({
containerStyle: {
flexDirection: 'row',
alignItems: 'center',
backgroundColor: 'orange',
elevation: 8,
paddingHorizontal: 12
},
styleInput: {
flex: 1,
height: 56,
color: 'white',
fontSize: 20,
fontFamily: 'Roboto'
}
})
Props | Type | Description | Required |
---|---|---|---|
containerStyle | Object | No | |
styleInput | Object | Inline-styles of the style input | No |
searchIcon | React.Element | The displayed search icon on the right of the text input. react-native-vector-icons is supported | No |
closeIcon | React.Element | The displayed close icon on the right of the text input. react-native-vector-icons is supported | No |
onChangeText | Function | Function executed when field's value is changed |
MIT License
Copyright (c) 2018 InterfaceKit
Antonio Moreno Valls <amoreno at apsl.net>
Built with 💛 by APSL.
FAQs
A React Native material search bar for Android that follows the Google's material design guidelines.
We found that react-native-js-material-searchbar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.