rnr-starter
Version:
A comprehensive React Native Expo boilerplate with 50+ modern UI components, dark/light themes, i18n, state management, and production-ready architecture
11 lines (9 loc) • 338 B
text/typescript
import * as NavigationBar from 'expo-navigation-bar';
import { NAV_THEME } from '~/lib/constants';
export async function setAndroidNavigationBar(theme: 'light' | 'dark') {
try {
await NavigationBar.setButtonStyleAsync(theme === 'dark' ? 'light' : 'dark');
} catch (error) {
// Silently handle navigation bar API errors
}
}