Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nirajniroula/parallax-header-test


https://github.com/nirajniroula/parallax-header-test

Last synced: 26 days ago
JSON representation

Awesome Lists containing this project

README

        

# parallax-header-test
Example



import React, { Component } from "react";
...
import { Header, ScrollableComponent } from "react-native-parallax-header";


export default class Profile extends Component {
...
...
renderHeader = (animation, canJumpToTab) => props => (
}
childBottom={}
renderTabBar={() => (
{
if (route.key !== this.state.currentTab && canJumpToTab) {
animation.onTabPress(route);
}
}}
indicatorStyle={{ backgroundColor: Colors.WHITE }}
renderLabel={this.renderLabel}
style={styles.tabBarStyle}
labelStyle={styles.label}
{...props}
/>
)}
/>
);

render() {
return (

{(animation, { canJumpToTab }) => (



)}

);
}
}

const styles = StyleSheet.create({
...
...
});