Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/sample-application-expo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
with:
package-manager-cache: false
node-version: 18
node-version: 20
cache: 'yarn'
cache-dependency-path: yarn.lock

Expand Down Expand Up @@ -106,12 +106,17 @@ jobs:
[[ "${{ matrix.build-type }}" == "production" ]] && ENABLE_PROD=1 || ENABLE_PROD=0
[[ "${{ matrix.ios-use-frameworks }}" == "dynamic-frameworks" ]] && export USE_FRAMEWORKS=dynamic
echo "ENABLE_PROD=$ENABLE_PROD"
# Monorepo fix: Point Sentry SDK to correct React Native version (0.81 vs 0.80)
export REACT_NATIVE_NODE_MODULES_DIR="$(cd ../node_modules/react-native && pwd)"
PRODUCTION=$ENABLE_PROD pod install
cat Podfile.lock | grep $RN_SENTRY_POD_NAME

- name: Build Android App
if: ${{ matrix.platform == 'android' }}
working-directory: samples/expo/android
env:
# Increase memory for Expo SDK 54 lint tasks
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g"
run: |
[[ "${{ matrix.build-type }}" == "production" ]] && CONFIG='Release' || CONFIG='Debug'
echo "Building $CONFIG"
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"resolutions": {
"appium-chromedriver@npm:5.6.73/@xmldom/xmldom": "0.8.10",
"form-data": "4.0.4",
"tar-fs": "^3.1.1"
"tar-fs": "^3.1.1",
"tar": "^7.5.7"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was needed because:

  1. Expo SDK 54 → uses @expo/cli@54.0.22
  2. @expo/cli@54.0.22 → requires tar: ^7.5.2
  3. Yarn resolves → tar@7.5.6 (vulnerable) ❌ failed check
    4. Our fix → force tar@^7.5.7 (patched)

},
"version": "0.0.0",
"name": "sentry-react-native",
Expand Down
6 changes: 1 addition & 5 deletions samples/expo/components/ExternalLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ export function ExternalLink(
) {
return (
<Link
hrefAttrs={{
// On web, launch the link in a new tab.
target: '_blank',
}}
target="_blank"
{...props}
// @ts-expect-error: External URLs are not typed.
href={props.href}
onPress={e => {
if (Platform.OS !== 'web') {
Expand Down
38 changes: 19 additions & 19 deletions samples/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@
"dependencies": {
"@sentry/core": "10.37.0",
"@sentry/react-native": "7.11.0",
"@types/react": "~19.0.10",
"expo": "^53.0.0",
"expo-constants": "~17.1.5",
"expo-dev-client": "~5.1.8",
"expo-image-picker": "~16.1.4",
"expo-linking": "~7.1.4",
"expo-router": "~5.0.5",
"expo-status-bar": "~2.2.3",
"expo-updates": "~0.28.12",
"expo-web-browser": "~14.1.6",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-native": "0.79.2",
"react-native-gesture-handler": "~2.24.0",
"react-native-safe-area-context": "5.4.0",
"react-native-screens": "~4.10.0",
"react-native-web": "^0.20.0",
"typescript": "~5.8.3"
"@types/react": "~19.1.10",
"expo": "^54.0.0",
"expo-constants": "~18.0.13",
"expo-dev-client": "~6.0.20",
"expo-image-picker": "~17.0.10",
"expo-linking": "~8.0.11",
"expo-router": "~6.0.22",
"expo-status-bar": "~3.0.9",
"expo-updates": "~29.0.16",
"expo-web-browser": "~15.0.10",
"react": "19.1.0",
"react-dom": "19.1.0",
"react-native": "0.81.5",
"react-native-gesture-handler": "~2.28.0",
"react-native-safe-area-context": "~5.6.0",
"react-native-screens": "~4.16.0",
"react-native-web": "^0.21.0",
"typescript": "~5.9.2"
},
"devDependencies": {
"@babel/core": "^7.26.0",
Expand All @@ -52,7 +52,7 @@
"@typescript-eslint/eslint-plugin": "^8.50.0",
"@typescript-eslint/parser": "^8.50.0",
"eslint": "^8.57.0",
"eslint-config-expo": "^7.1.2",
"eslint-config-expo": "~10.0.0",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jest": "^29.5.0",
Expand Down
Loading
Loading