Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
5 changes: 1 addition & 4 deletions examples/react-native/expo-app/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {Button, StyleSheet, Text, View} from 'react-native';
import {useEffect} from 'react';
import {identify, Identify, init, track, add, Types, trackScreenViewOnNavigationStateChange} from '@amplitude/analytics-react-native';
import {networkCapturePlugin} from '@amplitude/plugin-network-capture-browser';
import { NavigationContainer, useNavigationContainerRef } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import FetchNetworkTestScreen from './FetchNetworkTestScreen';
Expand Down Expand Up @@ -59,9 +58,7 @@ export default function App() {
autocapture: {
screenViews: true,
elementInteractions: true,
networkTracking: {
ignoreHosts: ['http://localhost:8081'],
},
networkTracking: false,
appLifecycles: true,
sessions: true,
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react-native/expo-app/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ module.exports = function (api) {
return {
presets: ['babel-preset-expo'],
plugins: [
'@amplitude/babel-plugin-autocapture-transformer',
// Inlines AMPLITUDE_API_KEY from the shell environment at bundle time.
// `export AMPLITUDE_API_KEY=…` before `pnpm run android` / `pnpm run ios`.
[
'transform-inline-environment-variables',
{include: ['AMPLITUDE_API_KEY', 'TEST_SERVER_HOST']},
],
'@amplitude/babel-plugin-autocapture-transformer',
],
};
};
4 changes: 2 additions & 2 deletions examples/react-native/expo-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"eject": "expo eject"
},
"dependencies": {
"@amplitude/analytics-react-native": "workspace:*",
"@amplitude/plugin-network-capture-browser": "workspace:*",
"@amplitude/analytics-react-native": "1.6.8",
"@amplitude/babel-plugin-autocapture-transformer": "0.1.1",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Conflicting babel plugin declarations

High Severity

@amplitude/babel-plugin-autocapture-transformer is declared as 0.1.1 under dependencies and still as workspace:* under devDependencies. The lockfile only records the published specifier, so package.json and pnpm-lock.yaml disagree and installs with a frozen lockfile can fail or resolve unpredictably.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c19b447. Configure here.

"@babel/runtime": "^7.20.0",
"@react-native-async-storage/async-storage": "~1.17.11",
"@react-navigation/native": "^6.1.18",
Expand Down
58 changes: 50 additions & 8 deletions examples/react-native/expo-app/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion examples/react-native/expo-app/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
packages:
- '.'
- '../../../packages/*'
- '../../../packages/*'

# allow @amplitude/babel-plugin-autocapture-transformer to be installed without 3 day delay
minimumReleaseAgeExclude:
- '@amplitude/*'
Loading