native-navigation
native-navigation copied to clipboard
Translucent ios nav bar
Looks like translucent not work correctly on iOS, I'm change in ReactNavigationImplementation.swift method reconcileScreenConfig part with translucent config to:
if let translucent = boolForKey("translucent", next) {
if (translucent == true) {
navBar.setBackgroundImage(UIImage(), for: UIBarMetrics.default)
navBar.shadowImage = UIImage()
navController.view.backgroundColor = UIColor.clear
}
navBar.isTranslucent = translucent
}
but I really don't know how disable it when next screen will be with translucent false
What is it you are wanting it to do? Setting the background image and shadow image ends up making the nav bar entirely transparent there. Is that what you are going for?
@benkraus yeah, you are right. Is it not what "translucent" mean?)