Skip to content

Commit dc89f30

Browse files
fix: correct config chaining in withIntercomPushNotification (#383)
The exported plugin was passing the original `config` to both `appDelegate` and `infoPlist` instead of the chained `newConfig`, which meant each plugin received the unmodified config rather than the result of the previous plugin in the chain. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a0b5005 commit dc89f30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/expo-plugins/withPushNotifications.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const withIntercomPushNotification: ConfigPlugin<IntercomPluginProps> = (
5959
props
6060
) => {
6161
let newConfig = config;
62-
newConfig = appDelegate(config, props);
63-
newConfig = infoPlist(config, props);
62+
newConfig = appDelegate(newConfig, props);
63+
newConfig = infoPlist(newConfig, props);
6464
return newConfig;
6565
};

0 commit comments

Comments
 (0)