
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
bottomsearchbar
Advanced tools

You can easily add animated search box for your application using this package.
This package needs react-native-svg package first you install it , you can install with npm i react-native-svg. You can watch(3 min) on youtube how to setup bottom search bar component.
npm install bottomsearchbar
Simple Use
import React, {useState} from 'react';
import {StyleSheet, Text, View} from 'react-native';
import BottomSearch from 'bottomsearchbar';
const initialData = [
{
userId: 1,
id: 1,
title: 'delectus aut autem',
completed: false,
},
{
userId: 1,
id: 2,
title: 'quis ut nam facilis et officia qui',
completed: false,
},
{
userId: 1,
id: 3,
title: 'fugiat veniam minus',
completed: false,
},
];
const App = () => {
const [data, setData] = useState(initialData);
return (
<View style={styles.container}>
<BottomSearch data={data} />
</View>
);
};
export default App;
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: 'grey',
},
});
| Prop Name | Description |
|---|---|
| customCss | You can put your own styles |
| searchResultOnPress | This parameter accepts a function, when the user clicks on the search result, the data of the clicked result is sent to this function |
| onSearchTextChange | This function is triggered when the user types in the search box and returns the text written by the user. |
| data | Array containing data to search. |
| placeHolderText | Search input placeholder text |
| cancelText | Text of search box closing button |
| customSearchResultItem | You can change search result component with this prop |
| icon | You can use your icon component |
const customCss = {
body: {},
search: {},
searchInput: {},
searchResults: {},
item: {},
closeButtonColor: '',
};
<BottomSearchBar customCss={customCss} />;
<BottomSearchBar searchResultOnPress={item => console.log(item)} />
<BottomSearchBar onSearchTextChange={text => console.log(text)} />
**İmportant : The default search result component shows "title" property on the screen, you need to write the custom search result component to change it. **
const data =[
{
id: '0',
title: 'Street Image',
download_url:
'https://unsplash.com/photos/lIVYk4qacSQ/download?force=true&w=640',
}
]
<BottomSearchBar
data={data}
/>
const customSearchResultItem = ({item, id}) => {
console.log(item);
return (
<View>
<Text>{item.title}</Text>
</View>
);
};
<BottomSearchBar customSearchResultItem={customSearchResultItem} />;
const icon = <YourIconComponent />;
<BottomSearchBar icon={icon} />;
<BottomSearchBar placeHolderText={'Search'} />
<BottomSearchBar cancelText={'Cancel'} />
Thats is simple you can review this code.
<BottomSearchBar>
<View>
<Text>My component</Text>
</View>
</BottomSearchBar>
<BottomSearchBar/>
<YourComponent/>
I thank JetBrains for their support to students.
FAQs
React native bottom search bar component
We found that bottomsearchbar 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.