Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-animated-searchbox

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-animated-searchbox

A simple search box with animation. Compatible with Expo CLI and React Native CLI.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
increased by90.91%
Maintainers
1
Weekly downloads
 
Created
Source

A simple search box with animation. Compatible with Expo CLI and React Native CLI.

  • Easy to use,

  • Lightweight, fast, flexible and easy customizable,

  • Support both IOS & Android Devices,

  • Also Support React Native Web

Install

We used a search SVG icon in this project.
So, you need to install the React Native SVG library before continue the installation.

After that;

npm install react-native-animated-searchbox --save  
  
//or  
  
yarn add react-native-animated-searchbox  

Demo

SNACK EXPO IO

https://snack.expo.io/@gurayyarar/react-native---animated-searchbox

EXPO APP ON ANDROID

IOS

AS GIF (FOR QUICK CHECK)
IOSANDROIDWEB
IOSANDROIDWEB

Usage

//Call for the open  
openSearchBox = () => this.refSearchBox.open();  
  
//Call for the close  
closeSearchBox = () => this.refSearchBox.close();  
  
render() {  
 return ( 
    <View>
  
        <ReactNativeAnimatedSearchbox 
            ref={(ref) => this.refSearchBox = ref} 
            placeholder={"Search..."} 
        />
         
    </View>  
 )}  
  

Properties

KeyDescriptionValue TypeIs RequiredDefault
heightHeight of the search boxnumberfalse48
borderRadiusBorder radius of the search boxnumberfalse48
fontSizeFont size of the search boxnumberfalse20
backgroundColorBackground color of the search boxcolor codes (hex,rgb,rgba)falsergba(255,255,255,0.70)
placeholderTextColorPlaceholder text colorcolor codes (hex,rgb,rgba)false#555555
searchIconSizeSearch icon width and height sizenumberfalse20
searchIconColorSearch icon colorcolor codes (hex,rgb,rgba)false#555555
focusAfterOpenedIf true, keyboard will show after search box openedbooleanfalsefalse
shadowColorBox-shadow color of the search box. If you don't want to please type transparentcolor codes (hex,rgb,rgba)falsergba(0,0,0,0.12)
placeholderPlaceholder text of the search boxstring/texttrue
animationSpeedAnimation speeds as milisecondsarray ([number, number])false[200, 250]

And also supporting props all of the TextInput Component of React Native.

Events

KeyDescription
onOpeningTrigger on search box start to open
onClosingTrigger on search box start to close
onOpenedTrigger on search box fully opened
onClosedTrigger on search box fully closed

And also supporting events all of the TextInput Component of React Native.

FAQ

Can I use this template for personal or commercial websites/web projects? Sure, you can use both of personal and commercial websites/web projects.

Is the attribution link required? No, not required. (Though very much appreciated)

License

React Native - Animated Searhbox is an open source project that is licensed under the MIT license.

Credits

  • Unsplash - Beautiful, free images and photos that you can download and use for any project.

  • Ionicons - Premium designed icons for use in web, iOS, Android, and desktop apps.

Donations

Donations are greatly appreciated!

BUY ME A COFFEE

Keywords

FAQs

Package last updated on 16 May 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc