Skip to content

Instantly share code, notes, and snippets.

@WinDevInd
Last active January 15, 2018 06:43
Show Gist options
  • Save WinDevInd/8c9991ba7ea20533fbf9c69011dc398b to your computer and use it in GitHub Desktop.
Save WinDevInd/8c9991ba7ea20533fbf9c69011dc398b to your computer and use it in GitHub Desktop.
Tab component Contract
const _tabHeader:{
selected: <div>{tab}</div>,
notSelected: <div>{tab}</div>
};
const _tabContent = <ReviewsList
reviews={ _reviews }
loading={ this.state.showLoader }/>;
_tabContents.push(
{
tabHeader: _tabHeader,
tabContent: _tabContent
});
<Tabs tabsEquiSized={false} tabsData={_tabContents}
header={header}
styles={tabStyle}
staticHeader={true}
initialActiveTab={0}
itemMargin = '50'
isSwipable={true}>
</Tabs>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment