How to use the react-navigation-collapsible.withCollapsible function in react-navigation-collapsible

To help you get started, we’ve selected a few react-navigation-collapsible examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github benevbright / react-navigation-collapsible / example / src / S1_ExtraHeader.js View on Github external
/>
      
    
  );
};

const collapsibleParams = {
  collapsibleComponent: SearchBar,
  collapsibleBackgroundStyle: {
    height: 60,
    backgroundColor: '#061',
    // disableFadeoutInnerComponent: true,
  },
};

export default withCollapsible(ExtraHeaderScreen, collapsibleParams);
github benevbright / react-navigation-collapsible / example / src / S0_DefaultHeader.js View on Github external
renderItem={this.renderItem}
        keyExtractor={(item, index) => String(index)}
        contentContainerStyle={{paddingTop: paddingHeight}}
        scrollIndicatorInsets={{top: paddingHeight}}
        onScroll={onScroll}
        // if you want to use 'onScroll' callback.
        // onScroll={Animated.event(
        //   [{nativeEvent: {contentOffset: {y: animatedY}}}],
        //   {useNativeDriver:true, listener:this.onScroll})}
        _mustAddThis={animatedY}
      />
    );
  }
}

export default withCollapsible(DefaultHeaderScreen, {iOSCollapsedColor: 'red'});
github benevbright / react-navigation-collapsible / example / src / AdvancedScreen.js View on Github external
data={this.state.data}
          renderItem={this.renderItem}
          keyExtractor={(item, index) => String(index)}

          contentContainerStyle={{paddingTop: paddingHeight + tabHeight}}
          scrollIndicatorInsets={{top: paddingHeight + tabHeight}}
          onScroll={onScroll} 
          _mustAddThis={scrollY}
          />
        
      
    );
  }
}

export default withCollapsible(AdvancedScreen, {iOSCollapsedColor: 'purple'});

react-navigation-collapsible

An extension of react-navigation for the collapsible header

MIT
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis