Skip to content

setStyle to style the according TabBar#2524

Merged
yogevbd merged 32 commits into
wix:masterfrom
postillonmedia:master
Jan 15, 2018
Merged

setStyle to style the according TabBar#2524
yogevbd merged 32 commits into
wix:masterfrom
postillonmedia:master

Conversation

@danielang
Copy link
Copy Markdown
Contributor

fix bugs of PR #2224

  • Hidden TabBar appears after setStyle
  • CustomNavBar was overrideen after setStyle

Use navigator.setStyle({...} to set the style of TabBar of the according screen at runtime for iOS and Android.
Good for theming purpose.

Exampe:

this.props.navigator.setStyle({
        tabBarButtonColor: '#0d0d0d',
        tabBarSelectedButtonColor: '#ff6c33',
        tabBarBackgroundColor: '#ffffff',
        navigationBarColor: '#ffffff',
});

…igationViewController

tabButtonColor improvement
[Android] apply guyca's solution
# Conflicts:
#	android/app/src/main/java/com/reactnativenavigation/params/parsers/StyleParamsParser.java

update fork
@yogevbd yogevbd merged commit abdb6e9 into wix:master Jan 15, 2018
yogevbd added a commit that referenced this pull request Jan 15, 2018
yogevbd added a commit that referenced this pull request Jan 15, 2018
yogevbd added a commit that referenced this pull request Jan 15, 2018
@danielang
Copy link
Copy Markdown
Contributor Author

@yogevbd: What is the reason for revert this PR? 🙂

@yogevbd
Copy link
Copy Markdown
Collaborator

yogevbd commented Jan 15, 2018

@danielang Something caused the navBar to be presented with delay after pushing a screen.
I'm investigating and will update you soon. thanks 🙂

yogevbd added a commit that referenced this pull request Jan 16, 2018
yogevbd added a commit that referenced this pull request Jan 21, 2018
chilinh added a commit to chilinh/react-native-navigation that referenced this pull request Jan 22, 2018
* r_master:
  SetStyle fix (wix#2539)
  Update ISSUE_TEMPLATE
  fix(start app): show red screen in case an error is thrown while starting the app (wix#2556)
  Xcode 8 fixes
  fixed swizzle in xcode 8
  Back-port insets fix to v1
  Solved doc formatting issues (wix#2544)
  Update README.md (wix#2537)
  Update styling-the-navigator.md
  Adding preferredContentSize (wix#2529)
  Revert "setStyle to style the according TabBar (wix#2524)"
  setStyle to style the according TabBar (wix#2524)
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

Successfully merging this pull request may close these issues.

2 participants