mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
NavigatorIOS custom nav bar colors
Summary: NavigatorIOS with custom nav bar custom colors, working example included in UIExplorer. Based on pull request #318 to complete pending work based on comments. Closes https://github.com/facebook/react-native/pull/695 Github Author: Eduardo <edo.lomeli@gmail.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
This commit is contained in:
@@ -80,10 +80,7 @@
|
||||
bar.barTintColor = _navItem.barTintColor;
|
||||
}
|
||||
if (_navItem.tintColor) {
|
||||
BOOL canSetTintColor = _navItem.barTintColor == nil;
|
||||
if (canSetTintColor) {
|
||||
bar.tintColor = _navItem.tintColor;
|
||||
}
|
||||
bar.tintColor = _navItem.tintColor;
|
||||
}
|
||||
if (_navItem.titleTextColor) {
|
||||
[bar setTitleTextAttributes:@{NSForegroundColorAttributeName : _navItem.titleTextColor}];
|
||||
|
||||
Reference in New Issue
Block a user