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

Translucent ios nav bar

Open savelichalex opened this issue 8 years ago • 2 comments

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

savelichalex avatar Jun 03 '17 10:06 savelichalex

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 avatar Jun 03 '17 17:06 benkraus

@benkraus yeah, you are right. Is it not what "translucent" mean?)

savelichalex avatar Jun 03 '17 21:06 savelichalex