We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c356288 commit 8e32556Copy full SHA for 8e32556
1 file changed
packages/core/plugin/src/withSentryIOS.ts
@@ -103,8 +103,8 @@ export function modifyAppDelegate(config: ExpoConfig): ExpoConfig {
103
// Add RNSentrySDK.start() at the beginning of application method
104
const originalContents = config.modResults.contents;
105
config.modResults.contents = config.modResults.contents.replace(
106
- /(func application\([^)]*\) -> Bool \{)/s,
107
- `$1\n RNSentrySDK.start()`,
+ /(func application\([^)]*\) -> Bool \{)\s*\n(\s*)/s,
+ `$1\n$2RNSentrySDK.start()\n$2`,
108
);
109
if (config.modResults.contents === originalContents) {
110
warnOnce(`Failed to insert 'RNSentrySDK.start()' in '${fileName}'.`);
0 commit comments