1.1.1 • Published 6 years ago

react-native-jellytoolbar v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

react-native-jellytoolbar

license Version

React Native component for creating jelly-like toolbar.
Inspired by Yalantis' JellyToolbar with Kotlin.

Installation

  1. Install this library and react-native-svg.
npm install react-native-jellytoolbar react-native-svg --save
  1. Link react-native-svg with native code.
react-native link react-native-svg

For more information about react-native-svg, check this repository.

Usage

  1. Import JellyToolbar:
import JellyToolbar from 'react-native-jellytoolbar';
  1. Use as follows:
<JellyToolbar
  isStatusBarTranslucent = {true}
  height = {80}
  tabWidth = {64}
  primaryColor = '#5B86E5'
  secondaryColor = '#36D1DC'
  headerText = {'Menu'}
  headerTextSize = {20}
  placeholder = {'Search'}
  inputTextSize = {20}
  menuIcon={<Icon.../>}
  openTabIcon={<Icon.../>}
  closeTabIcon={<Icon.../>}
/>

react-native-jellytoolbar-result

Properties

PropTypeDescriptionDefaultRequired
isStatusBarTranslucentbooleanNote: For Android Whether StatusBar is translucent or notfalse
heightnumberHeight of toolbar. If you set isStatusBarTranslucent = {true}, this value should contain height of StatusBar.NoneO
tabWidthnumberWidth of views that contain menuIcon, openTabIcon and closeTabIconNoneO
primaryColorstringColor of header and final color of searchbar gradientNoneO
secondaryColorstringInitial Color of searchbar gradientNoneO
headerTextstringText used in header sectionHeader Text
headerTextSizenumberfontSize of hederTextNoneO
placeholderstringText used as placeholder of textinputSearch...
inputTextSizenumberfontSize of placeholder and typed textNoneO
menuIconelementComponent used in menu section(left side of header)None
openTabIconelementComponent used in open tabNone
closeTabIconelementComponent used in close tabNone

License

MIT