1.0.2 • Published 6 years ago

react-native-collapsingtoolbar-parallax-header v1.0.2

Weekly downloads
4
License
-
Repository
-
Last release
6 years ago

React-native-collapsingtoolbar-parallax-header

Screen Shot

 

Getting Started

$ npm i react-native-collapsingtoolbar-parallax-header 

or

$ yarn add react-native-collapsingtoolbar-parallax-header

Usage

Import the component:

    import CollapsingToolbar from 'react-native-collapsingtoolbar-parallax-header';
    import Icon from 'react-native-vector-icons/Ionicons'; 

    <CollapsingToolbar 
        leftItem={<Icon name="md-menu" size={30} color="#fff" />}
        rightItem={<Icon name="md-create" size={30}  color="#fff" />}   
        toolbarColor='#2196f3'  
        title='Demo Toolbar'
        src={require('../../../images/drawer6.png')}>
        <Text>
            Create             
        </Text>
    </CollapsingToolbar>

Props

PropTypeDefaultdescription
srcobjectrequire('img.png') or {uri: url}
titlestringHometoolbar title
titleColorstring#ffftoolbar title text color
toolbarColorstring#e91e63toolbar background color
toolbarMaxHeightnumber300maximum height of toolbar
toolbarMinHeightnumber55minimum height of toolbar
leftItemPropTypes.elementtoolbar left menu item
leftItemPressfunc
leftItemPropTypes.elementtoolbar right item
rightItemPressfunc