Skip to content

Default Index is not working. #52

@amit13091992

Description

@amit13091992

When using this TabView with a default index to open a specific tab the default index is not working. Even though if I am trying to set it statically then also it is not working.

<DynamicTabView
        data={tabNames}
        renderTab={_renderTabItem}
        defaultIndex={defaultIndex}
        containerStyle={styles.tabContainer}
        headerBackgroundColor={'#8e8e8e'}
        headerTextStyle={styles.headerText}
        onChangeTab={(index) => onChangeTab(index)}
        headerUnderlayColor={'#8e8e8e'}
        headerContainerStyle={{ backgroundColor: '#afafaf' }}
        headerActiveTextStyle={{ color: '#8e8e8e' }}
        highlightStyle={{ backgroundColor: '#8e8e8e' }}
        tabContainerStyle={{}}
        noHighlightStyle={{ backgroundColor: '#8e8e8e' }}
        extraData={{}} />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions