fix(expo-plugin): adding bg mode if none exist yet (#4126)
This commit is contained in:
parent
703ed43996
commit
451806c547
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user