airbnb / airbnb/native-navigation

Translucent ios nav bar

Open
#119 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.1k
Forks
173
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Research direction

Start in ReactNavigationImplementation.swift at reconcileScreenConfig and inspect how the translucent navigation-bar configuration is applied when screens change. Reproduce transitions between translucent and non-translucent screens on iOS; the work is done when both states render correctly across navigation changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, swift
Domain
mobile, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.