airbnb / airbnb/native-navigation
Translucent ios nav bar
- 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
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