Skip to content

Commit fc24955

Browse files
feat(xcode): Support REACT_NATIVE_PATH env variable in debug files upload scripts (#4789)
1 parent a2f777c commit fc24955

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
### Changes
1212

1313
- Fallback to Current Activity Holder when React Context Activity is not present ([#4779](https://github.com/getsentry/sentry-react-native/pull/4779))
14+
- Support `REACT_NATIVE_PATH` env in Xcode Debug Files upload scripts ([#4789](https://github.com/getsentry/sentry-react-native/pull/4789))
1415

1516
### Fixes
1617

packages/core/scripts/sentry-xcode-debug-files.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
# print commands before executing them
66
set -x
77

8-
[ -z "$WITH_ENVIRONMENT" ] && WITH_ENVIRONMENT="../node_modules/react-native/scripts/xcode/with-environment.sh"
8+
# REACT_NATIVE_PATH first used in RN 0.74.0 Template https://github.com/facebook/react-native/commit/289e78388a87408e215a25108cb02511a05f5c80
9+
LOCAL_REACT_NATIVE_PATH="${REACT_NATIVE_PATH:-"../node_modules/react-native"}"
10+
11+
[ -z "$WITH_ENVIRONMENT" ] && WITH_ENVIRONMENT="${LOCAL_REACT_NATIVE_PATH}/scripts/xcode/with-environment.sh"
912

1013
if [ -f "$WITH_ENVIRONMENT" ]; then
1114
# load envs if loader file exists (since rn 0.68)

0 commit comments

Comments
 (0)