@lookiero/checkout 0.6.0-beta.33 → 0.6.0-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,14 @@ import { useEffect } from "react";
|
|
|
6
6
|
import { useLocation } from "react-router-native";
|
|
7
7
|
import { matchRoutes } from "./matchRoutes";
|
|
8
8
|
import { ReactRouterV6Instrumentation } from "./reactRouterV6Instrumentation/reactRouterV6Instrumentation.native";
|
|
9
|
-
const transport = (options, nativeFetch) =>
|
|
9
|
+
const transport = (options, nativeFetch) => {
|
|
10
|
+
console.log("NATIVE.isNativeTransportAvailable()", NATIVE.isNativeTransportAvailable());
|
|
11
|
+
console.log(makeReactNativeTransport(options));
|
|
12
|
+
console.log(makeFetchTransport(options, nativeFetch));
|
|
13
|
+
return NATIVE.isNativeTransportAvailable()
|
|
14
|
+
? makeReactNativeTransport(options)
|
|
15
|
+
: makeFetchTransport(options, nativeFetch);
|
|
16
|
+
};
|
|
10
17
|
const routingInstrumentation = new ReactRouterV6Instrumentation(useEffect, useLocation, matchRoutes);
|
|
11
18
|
const integrations = [new ReactNativeTracing({ routingInstrumentation })];
|
|
12
19
|
const wrapComponent = (Component) => sentryWrap(Component);
|
|
@@ -2,7 +2,7 @@ import { ComponentType } from "react";
|
|
|
2
2
|
import { Platform } from "react-native";
|
|
3
3
|
interface SentryLoggerFunctionArgs {
|
|
4
4
|
readonly publicKey: string;
|
|
5
|
-
readonly environment: `${typeof Platform.OS}-${"DEV" | "PROD"}`;
|
|
5
|
+
readonly environment: `${typeof Platform.OS}-${"DEV" | "PROD" | "EXPO"}`;
|
|
6
6
|
readonly release: string;
|
|
7
7
|
readonly project: string;
|
|
8
8
|
}
|