1import { ConfigPlugin, WarningAggregator, withStringsXml } from '@expo/config-plugins'; 2 3export const withAndroidUserInterfaceStyle: ConfigPlugin<void> = (config) => { 4 return withStringsXml(config, (config) => { 5 const userInterfaceStyle = config.android?.userInterfaceStyle ?? config.userInterfaceStyle; 6 if (userInterfaceStyle) { 7 WarningAggregator.addWarningAndroid( 8 'userInterfaceStyle', 9 // TODO: Maybe warn that they need a certain version of React Native as well? 10 'Install expo-system-ui in your project to enable this feature.' 11 ); 12 } 13 14 return config; 15 }); 16}; 17