Skip to content

Commit 437e582

Browse files
committed
fix: add SDK dependencies to E2E-compat and import polyfills
- Added @segment/analytics-react-native and @segment/sovran-react-native as dependencies - Import react-native-get-random-values polyfill in index.js - Built all workspace packages This ensures the E2E app can use the local SDK packages via metro bundler.
1 parent 83282f0 commit 437e582

3 files changed

Lines changed: 1370 additions & 10 deletions

File tree

examples/E2E-compat/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* @format
33
*/
44

5+
import 'react-native-get-random-values';
56
import {AppRegistry} from 'react-native';
67
import App from './App';
78
import {name as appName} from './app.json';

examples/E2E-compat/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
"@react-native-community/masked-view": "^0.1.11",
2525
"@react-navigation/native": "^6.1.9",
2626
"@react-navigation/stack": "^6.3.20",
27+
"@segment/analytics-react-native": "^2.20.0",
28+
"@segment/sovran-react-native": "^1.1.0",
2729
"react": "18.2.0",
2830
"react-native": "0.72.9",
2931
"react-native-gesture-handler": "^2.13.4",

0 commit comments

Comments
 (0)