UNPKG

@sentry/react-native

Version:
74 lines (73 loc) 2.33 kB
/** * Interface from the Expo SDK defined here * (we are describing the native Module * the TS typing is only guideline): * * https://github.com/expo/expo/blob/b51b5139f2caa2a9495e4132437d7ca612276158/packages/expo-constants/src/Constants.ts * https://github.com/expo/expo/blob/b51b5139f2caa2a9495e4132437d7ca612276158/packages/expo-manifests/src/Manifests.ts */ export interface ExpoConstants { /** * Deprecated. But until removed we can use it as user ID to match the native SDKs. */ installationId?: string; /** * Version of the Expo Go app */ expoVersion?: string | null; manifest?: null | { [key: string]: unknown; /** * Expo SDK version should match `expo` version from the app `package.json`. * Example "exposdk:50.0.0" */ runtimeVersion?: string; }; } /** * Interface from the Expo SDK defined here * (we are describing the native module * the TS typing is only guideline) * * https://github.com/expo/expo/blob/5d1153e6ae7c497fa1281ffee85fabe90d2321c2/packages/expo-device/src/Device.ts */ export interface ExpoDevice { deviceName?: string; isDevice?: boolean; manufacturer?: string; modelName?: string; osName?: string; osBuildId?: string; osVersion?: string; totalMemory?: number; } /** * Interface from the Expo SDK defined here * (we are describing the native module * the TS typing is only guideline) * * https://github.com/expo/expo/blob/8b7165ad2c6751c741f588c72dac50fb3a814dcc/packages/expo-updates/src/Updates.ts */ export interface ExpoUpdates { isEnabled?: boolean; updateId?: string | null; channel?: string | null; runtimeVersion?: string | null; checkAutomatically?: string | null; isEmergencyLaunch?: boolean; emergencyLaunchReason?: string | null; launchDuration?: number | null; isEmbeddedLaunch?: boolean; isUsingEmbeddedAssets?: boolean; createdAt?: Date | null; } export type ExpoGo = unknown; export interface ExpoGlobalObject { modules?: { ExponentConstants?: ExpoConstants; ExpoDevice?: ExpoDevice; ExpoUpdates?: ExpoUpdates; ExpoGo?: ExpoGo; }; } //# sourceMappingURL=expoglobalobject.d.ts.map