Skip to content

Commit beb3c36

Browse files
committed
Returning back module
1 parent 86a520f commit beb3c36

File tree

7 files changed

+2257
-10660
lines changed

7 files changed

+2257
-10660
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"dev-packages/utils",
4949
"samples/react-native-macos",
5050
"samples/expo",
51+
"samples/react-native",
5152
"performance-tests/TestAppPlain",
5253
"performance-tests/TestAppSentry"
5354
],

samples/react-native/ios/.xcode.env

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@
99
# For example, to use nvm with brew, add the following line
1010
# . "$(brew --prefix nvm)/nvm.sh" --no-use
1111
export NODE_BINARY=$(command -v node)
12+
13+
export EXTRA_COMPILER_ARGS="-w"
14+
15+
export SENTRY_RN_PACKAGE_PATH="../../.."
16+
export SENTRY_CLI_EXECUTABLE="../../../node_modules/@sentry/cli/bin/sentry-cli"
17+
export SENTRY_CLI_EXTRA_ARGS=""
18+
export SENTRY_CLI_DEBUG_FILES_UPLOAD_EXTRA_ARGS=""
19+
export SENTRY_CLI_RN_XCODE_EXTRA_ARGS=""
20+
export MODULES_PATHS="$PWD/../node_modules,$PWD/../../.."
21+
export SENTRY_COLLECT_MODULES="../../../scripts/collect-modules.sh"

samples/react-native/ios/sentryreactnativesample/LaunchScreen.storyboard

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
1717
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1818
<subviews>
19-
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Sentry RN" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
19+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="RN Sample" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
2020
<rect key="frame" x="0.0" y="202" width="375" height="43"/>
2121
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
2222
<nil key="highlightedColor"/>
2323
</label>
24-
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="MN2-I3-ftu">
24+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by Sentry" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="MN2-I3-ftu">
2525
<rect key="frame" x="0.0" y="626" width="375" height="21"/>
2626
<fontDescription key="fontDescription" type="system" pointSize="17"/>
2727
<nil key="highlightedColor"/>

samples/react-native/metro.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
const { withSentryConfig } = require('@sentry/react-native/metro');
22
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
33

4+
const { withMonorepo } = require('sentry-react-native-samples-utils/metro');
5+
46
/**
57
* Metro configuration
68
* https://reactnative.dev/docs/metro
@@ -17,4 +19,4 @@ const sentryConfig = withSentryConfig(mergedConfig, {
1719
},
1820
});
1921

20-
module.exports = sentryConfig;
22+
module.exports = withMonorepo(sentryConfig);

samples/react-native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"patch-package": "^8.0.0",
6868
"prettier": "2.8.8",
6969
"react-test-renderer": "19.1.0",
70+
"sentry-react-native-samples-utils": "workspace:^",
7071
"ts-jest": "^29.2.5",
7172
"typescript": "5.0.4"
7273
},

0 commit comments

Comments
 (0)