Skip to content

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

@Christo100

Description

@Christo100

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()
}, [])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions