Skip to content

bamlab/react-native-image-header-scroll-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-image-header-scroll-view

A ScrollView-like component that:

  • Has a fixed image header
  • Keep the image as a nav bar
  • Works on iOS and Android

Installation

$ npm install react-native-image-header-scroll-view --save

Demo

react-native-image-header-scroll-view demo

Basic Usage

import HeaderImageScrollView from 'react-native-image-header-scroll-view';

// Inside of a component's render() method:
render() {
  return (
    <HeaderImageScrollView
      maxHeight={200}
      minHeight={50}
      renderHeader={() => (
        <Image source={require('image.jpg')} style={styles.image} />
      )}
    >
      <View style={{ height: 1000 }}>
          <Text>Scroll Me!</Text>
      </View>
    </HeaderImageScrollView>
  );
}

Other open-source modules by the folks at BAM

About

ScrollView with an image in header which becomes a navbar

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 13