How to use react-navigation-collapsible - 7 common examples

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'});
github benevbright / react-navigation-collapsible / example / src / S2_DefaultHeaderForTab.js View on Github external
indicatorStyle: {backgroundColor: 'white'},
        style: {
          borderTopColor: 'transparent',
          borderTopWidth: 0,
          elevation: 0,
          backgroundColor: '#061',
        },
      },
    },
    navigationOptions: {
      title: 'My Group 1',
    },
  },
);

export default withCollapsibleForTab(TopTabNavigator, {
  iOSCollapsedColor: '#032',
});
github benevbright / react-navigation-collapsible / example / src / S3_ExtraHeaderForTab.js View on Github external
}}
      />
    
  );
};

const collapsibleParams = {
  collapsibleComponent: GroupImageHeader,
  collapsibleBackgroundStyle: {
    height: 200,
    backgroundColor: '#061',
    disableFadeoutInnerComponent: true,
  },
};

export default withCollapsibleForTab(TopTabNavigator, collapsibleParams);
github benevbright / react-navigation-collapsible / example / App.tsx View on Github external
function App() {
  return (
    
      
        
        {CollapsibleStack(
          ,
          {
            iOSCollapsedColor: 'red',
          },
        )}
github benevbright / react-navigation-collapsible / example / src / TabChild1Screen.js View on Github external
const {animatedY, onScroll} = this.props.collapsible;

    return (
       String(index)}
        onScroll={onScroll}
        _mustAddThis={animatedY}
      />
    );
  }
}

export default withCollapsibleForTabChild(TabChild1Screen);

react-navigation-collapsible

An extension of react-navigation for the collapsible header

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis