import { Platform, NativeModules } from 'react-native'; const UNNavigationBarModule = Platform.OS === 'android' ? NativeModules.UNNavigationBarModule : undefined; export async function isNavigationBarTranslucent(): Promise { if (!UNNavigationBarModule) return false; try { return await UNNavigationBarModule.isNavigationBarTranslucent(); } catch { return false; } }