react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

selectedTextColor Issue

Open eladgel opened this issue 7 years ago • 9 comments

Issue Description

selectedTextColor for bottomTab defaults to blue after modal opened

Steps to Reproduce / Code Snippets / Screenshots

I have a scenario that makes the selectedTextColor in a bottomTab element malfunction: You can use the Playground app for the test

  1. Open the app with tabs have all the tabs selectedTextColor to 'red' and textColor to 'green'
  2. Open any modal
  3. Close the modal
  4. Switch tabs, you will see that almost all the tabs except for the one that was chosen when the Modal was opened, the selectedTextColor changes to BLUE when you tap on it

Environment

  • React Native Navigation version: 3.0.0-alpha.8
  • React Native version: 0.59.9
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator+Device Debug+Release

eladgel avatar Sep 24 '19 07:09 eladgel

I'm facing the same issue, any idea how to solve it ? Or currently, we have to change the native code :| Thanks

vjtc0n avatar Sep 26 '19 09:09 vjtc0n

I have the same issue, how to fix it?

TuTejsy avatar Oct 02 '19 07:10 TuTejsy

Any update on this? Seems to affect both v2 and v3.

SukhKalsi avatar Oct 29 '19 16:10 SukhKalsi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Nov 28 '19 17:11 stale[bot]

fixed in v4

guyca avatar Nov 28 '19 18:11 guyca

Same bug in v4..

mtebele avatar Dec 20 '19 19:12 mtebele

Any workaround on this?

ghost avatar Jan 20 '20 17:01 ghost

Any workaround on this?

I've fixed it using this setting:

Navigation.setDefaultOptions({
    ...
    bottomTab: {
      textColor: '#ffffff',
      selectedTextColor: '#ffffff',
      selectedIconColor: '#ffffff',
    },
    ...

mtebele avatar Jan 20 '20 17:01 mtebele

@mtebele I'm already using this config and it doesn't work.

ghost avatar Jan 20 '20 18:01 ghost