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

Navigation Bar Color Change Not Reflecting on All Android Devices #65

Open
Christo100 opened this issue Oct 14, 2024 · 1 comment
Open

Comments

@Christo100
Copy link

Description

If SystemNavigationBar.setNavigationColor('#DCDC02', 'light', 'both') is not working on all devices,
Is it due to Android version differences, manufacturer-specific UI customizations, or gesture navigation settings.

react-native-system-navigation-bar version

^2.6.4

React Native version

0.74.5

Snack, code example, screenshot, or link to a repository

useEffect(() => {
const initBarColor = async () => {
if (Platform.OS === 'android') {
try {
await SystemNavigationBar.setNavigationColor('#DCDC02', 'light', 'both')
} catch (error) {
console.log({ error })
}
}
}
initBarColor()
}, [])

@AlixH
Copy link

AlixH commented Oct 22, 2024

Samsung is not working for me

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