RM unneeded config plugin, update primary color (#10153)
This commit is contained in:
+1
-2
@@ -54,7 +54,7 @@ module.exports = function (_config) {
|
|||||||
},
|
},
|
||||||
icon: './assets/app-icons/ios_icon_default_next.png',
|
icon: './assets/app-icons/ios_icon_default_next.png',
|
||||||
userInterfaceStyle: 'automatic',
|
userInterfaceStyle: 'automatic',
|
||||||
primaryColor: '#1083fe',
|
primaryColor: '#006AFF',
|
||||||
newArchEnabled: false,
|
newArchEnabled: false,
|
||||||
ios: {
|
ios: {
|
||||||
supportsTablet: false,
|
supportsTablet: false,
|
||||||
@@ -296,7 +296,6 @@ module.exports = function (_config) {
|
|||||||
'./plugins/withAndroidManifestFCMIconPlugin.js',
|
'./plugins/withAndroidManifestFCMIconPlugin.js',
|
||||||
'./plugins/withAndroidManifestIntentQueriesPlugin.js',
|
'./plugins/withAndroidManifestIntentQueriesPlugin.js',
|
||||||
'./plugins/withAndroidStylesAccentColorPlugin.js',
|
'./plugins/withAndroidStylesAccentColorPlugin.js',
|
||||||
'./plugins/withAndroidDayNightThemePlugin.js',
|
|
||||||
'./plugins/withAndroidNoJitpackPlugin.js',
|
'./plugins/withAndroidNoJitpackPlugin.js',
|
||||||
'./plugins/shareExtension/withShareExtensions.js',
|
'./plugins/shareExtension/withShareExtensions.js',
|
||||||
'./plugins/notificationsExtension/withNotificationsExtension.js',
|
'./plugins/notificationsExtension/withNotificationsExtension.js',
|
||||||
|
|||||||
@@ -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
|
|
||||||
})
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user