Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translucent ios nav bar #119

Open
savelichalex opened this issue Jun 3, 2017 · 2 comments
Open

Translucent ios nav bar #119

savelichalex opened this issue Jun 3, 2017 · 2 comments

Comments

@savelichalex
Copy link

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

@benkraus
Copy link
Contributor

benkraus commented Jun 3, 2017

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?

@savelichalex
Copy link
Author

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

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

No branches or pull requests

2 participants