From 3839fdfe5963f1e0b1d1dec19886db7df120a374 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 31 Mar 2026 17:16:52 +0300 Subject: [PATCH] RM unneeded config plugin, update primary color --- app.config.js | 3 +-- plugins/withAndroidDayNightThemePlugin.js | 27 ----------------------- 2 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 plugins/withAndroidDayNightThemePlugin.js diff --git a/app.config.js b/app.config.js index 8615563501..58a8c86a3c 100644 --- a/app.config.js +++ b/app.config.js @@ -54,7 +54,7 @@ module.exports = function (_config) { }, icon: './assets/app-icons/ios_icon_default_next.png', userInterfaceStyle: 'automatic', - primaryColor: '#1083fe', + primaryColor: '#006AFF', newArchEnabled: false, ios: { supportsTablet: false, @@ -296,7 +296,6 @@ module.exports = function (_config) { './plugins/withAndroidManifestFCMIconPlugin.js', './plugins/withAndroidManifestIntentQueriesPlugin.js', './plugins/withAndroidStylesAccentColorPlugin.js', - './plugins/withAndroidDayNightThemePlugin.js', './plugins/withAndroidNoJitpackPlugin.js', './plugins/shareExtension/withShareExtensions.js', './plugins/notificationsExtension/withNotificationsExtension.js', diff --git a/plugins/withAndroidDayNightThemePlugin.js b/plugins/withAndroidDayNightThemePlugin.js deleted file mode 100644 index d9bc1b2114..0000000000 --- a/plugins/withAndroidDayNightThemePlugin.js +++ /dev/null @@ -1,27 +0,0 @@ -// Based on https://github.com/expo/expo/pull/33957 -// Could be removed once the app has been updated to Expo 53 -const {withAndroidStyles} = require('@expo/config-plugins') - -module.exports = function withAndroidDayNightThemePlugin(appConfig) { - const cleanupList = new Set([ - 'colorPrimary', - 'android:editTextBackground', - 'android:textColor', - 'android:editTextStyle', - ]) - - return withAndroidStyles(appConfig, config => { - config.modResults.resources.style = config.modResults.resources.style - ?.map(style => { - if (style.$.name === 'AppTheme' && style.item != null) { - style.item = style.item.filter(item => !cleanupList.has(item.$.name)) - } - return style - }) - .filter(style => { - return style.$.name !== 'ResetEditText' - }) - - return config - }) -}