forked from
jollywhoppers.com/witchsky.app
Bluesky app fork with some witchin' additions 馃挮
1// Based on https://github.com/expo/expo/pull/33957
2// Could be removed once the app has been updated to Expo 53
3const {withAndroidStyles} = require('@expo/config-plugins')
4
5module.exports = function withAndroidDayNightThemePlugin(appConfig) {
6 const cleanupList = new Set([
7 'colorPrimary',
8 'android:editTextBackground',
9 'android:textColor',
10 'android:editTextStyle',
11 ])
12
13 return withAndroidStyles(appConfig, config => {
14 config.modResults.resources.style = config.modResults.resources.style
15 ?.map(style => {
16 if (style.$.name === 'AppTheme' && style.item != null) {
17 style.item = style.item.filter(item => !cleanupList.has(item.$.name))
18 }
19 return style
20 })
21 .filter(style => {
22 return style.$.name !== 'ResetEditText'
23 })
24
25 return config
26 })
27}