sorokin0andrey / react-native-collapsible-navbar-scrollview

React Native collapsible navBar implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-collapsible-navbar-scrollview

npm npm (tag)

React Native collapsible navBar implementation.


Getting started

$ yarn add @busfor/react-native-collapsible-navbar-scrollview

Usage

import { CollapsibleNavBarScrollView, CollapsibleNavBarState } from '@busfor/react-native-collapsible-navbar-scrollview'
<CollapsibleNavBarScrollView
  headerMinHeight={56}
  headerMaxHeight={300}
  header={<View style={styles.header} />}
  animatedValue={/** Animated.Value for header animations **/}
  useNativeDriver={true} // for animatedValue
  initialState={CollapsibleNavBarState.open}
  onChangeState={(state) => {
    console.log(state)
  }} // CollapsibleNavBarState
  // ...other ScrollView props
>
  ...
</CollapsibleNavBarScrollView>

About

React Native collapsible navBar implementation


Languages

Language:TypeScript 27.9%Language:JavaScript 22.4%Language:Java 17.3%Language:Ruby 14.8%Language:Objective-C 12.3%Language:Starlark 5.3%