Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add different color for active and inactive tab text?? #49

Open
mksmanish opened this issue Mar 13, 2023 · 7 comments
Open

How to add different color for active and inactive tab text?? #49

mksmanish opened this issue Mar 13, 2023 · 7 comments

Comments

@mksmanish
Copy link

No description provided.

@iyifr
Copy link
Contributor

iyifr commented Jul 25, 2023

Hello , I've added this feature to the package , which allows you to style the active Tab's Text and overall style. Will be creating a pull request soon

@amit13091992
Copy link

any updates on the issue?

@yeswanth
Copy link
Owner

yeswanth commented Dec 10, 2023 via email

@amit13091992
Copy link

@yeswanth what are the props for handling that? Could you tell that as well? Please

@yeswanth
Copy link
Owner

@amit13091992 You can use activeTabStyle props in DynamicTabView to update the style for the active tab. You can also refer to the rest of the style customisations here

@amit13091992
Copy link

amit13091992 commented Dec 14, 2023

Hi @yeswanth the file that you have sent has the prop. but when I installed the package from npm it was not there.
After using the prop also it doesn't reflect or update the tabview.
Am I missing something??

"react-native-dynamic-tab-view": "^1.0.7-0"

usage example:

<DynamicTabView
        data={result11}
        renderTab={_renderTabItem}
        defaultIndex={defaultIndex}
        containerStyle={styles.tabContainer}
        headerBackgroundColor={'#14461C'}
        headerTextStyle={styles.headerText}
        onChangeTab={onChangeTab}
        headerUnderlayColor={'#F39328'}
        activeTabStyle={{ backgroundColor: "#F39328" }}
      />

@yeswanth
Copy link
Owner

yeswanth commented Jan 3, 2024

Hi @amit13091992 I have released a new version. Please try this version and let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants