fix(expo-plugin): adding bg mode if none exist yet (#4126)

This commit is contained in:
Błażej Lewandowski 2024-08-31 15:10:52 +02:00 committed by GitHub
parent 703ed43996
commit 451806c547
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,7 +13,7 @@ export const withBackgroundAudio: ConfigPlugin<boolean> = (
if (enableBackgroundAudio) {
if (!modes.includes('audio')) {
modes.push('audio');
config.modResults.UIBackgroundModes = [...modes, 'audio'];
}
} else {
config.modResults.UIBackgroundModes = modes.filter(