Fix argv handling for packaged mode (#52641)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/52641

Changelog: [Internal]

TSIA, missed this in D77591742

bypass-github-export-checks

Reviewed By: huntie

Differential Revision: D78413090

fbshipit-source-id: a02d604def172b531a89021496208171373ddd8c
This commit is contained in:
Moti Zilberman
2025-07-17 03:13:26 -07:00
committed by Facebook GitHub Bot
parent 60efc757d9
commit bbda71f2c8
@@ -28,7 +28,7 @@ if (version) {
}
const gotTheLock = app.requestSingleInstanceLock({
argv: process.argv.slice(2),
argv: process.argv.slice(app.isPackaged ? 1 : 2),
});
if (!gotTheLock) {