mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-26 15:07:19 +08:00
Reset header navbar items when not set. (#240)
This fixes the problem when navbar settings update from ones that have header items (e.g. custom title object) to a config without such items. In such a case we'd set navbar items in the first go and never reset those items.
This commit is contained in:
committed by
GitHub
parent
da9426b4b9
commit
7c351df14d
@@ -295,6 +295,9 @@
|
||||
navitem.scrollEdgeAppearance = appearance;
|
||||
}
|
||||
#endif
|
||||
navitem.leftBarButtonItem = nil;
|
||||
navitem.rightBarButtonItem = nil;
|
||||
navitem.titleView = nil;
|
||||
for (RNSScreenStackHeaderSubview *subview in config.reactSubviews) {
|
||||
switch (subview.type) {
|
||||
case RNSScreenStackHeaderSubviewTypeLeft: {
|
||||
|
||||
Reference in New Issue
Block a user